funguje
This commit is contained in:
		
							parent
							
								
									1b402c2a18
								
							
						
					
					
						commit
						7318d5a7bb
					
				
							
								
								
									
										1
									
								
								du1/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								du1/Makefile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| 
 | ||||
							
								
								
									
										0
									
								
								du1/Makefile.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								du1/Makefile.c
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										
											BIN
										
									
								
								du1/program
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								du1/program
									
									
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -1 +1,34 @@ | ||||
| 1 | ||||
| #include <stdlib.h> | ||||
| #include <stdio.h> | ||||
| #include <ctype.h> | ||||
| 
 | ||||
| int main(){ | ||||
|   int counter; | ||||
|   printf("Enter a number: "); | ||||
|   scanf("%d",&counter); | ||||
|   printf("\nPočet riadkov: %d\n",counter); | ||||
|   int i= 0; | ||||
|   int decrypted_string(); | ||||
|   while(1){ | ||||
|       i = getchar();  | ||||
|       if(decrypted_string[i]>='a' && decrypted_string[i]<='z'){ | ||||
|             decrypted_string[i]-=32; | ||||
|         } | ||||
|       if(decrypted_string[i]>='A' && decrypted_string[i]<='Z'){ | ||||
|             decrypted_string[i]+=32; | ||||
|         } | ||||
|        | ||||
|         putchar(i); | ||||
|         i++; | ||||
|       }   | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| /*for(int i=0; decrypted_string[i]!='\0'; i++){
 | ||||
|         if(decrypted_string[i]>='a' && decrypted_string[i]<='z'){ | ||||
|             decrypted_string[i]-=32; | ||||
|         } | ||||
|     } | ||||
| */ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user