Update a4/program.c
This commit is contained in:
		
							parent
							
								
									03a427d1f9
								
							
						
					
					
						commit
						f8cf8190dc
					
				
							
								
								
									
										10
									
								
								a4/program.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								a4/program.c
									
									
									
									
									
								
							| @ -43,11 +43,11 @@ int main() { | |||||||
|     int n = 0; |     int n = 0; | ||||||
| 
 | 
 | ||||||
|     // Načítanie vstupu
 |     // Načítanie vstupu
 | ||||||
|     printf("Zadajte čísla oddelené medzerou: "); |     // printf("Zadajte čísla oddelené medzerou: ");
 | ||||||
|     if (!fgets(input, sizeof(input), stdin)) { |     // if (!fgets(input, sizeof(input), stdin)) {
 | ||||||
|         printf("Chyba pri načítaní vstupu.\n"); |         // printf("Chyba pri načítaní vstupu.\n");
 | ||||||
|         return 1; |         // return 1;
 | ||||||
|     } |     // }
 | ||||||
| 
 | 
 | ||||||
|     // Parsovanie vstupu
 |     // Parsovanie vstupu
 | ||||||
|     char *token = strtok(input, " "); |     char *token = strtok(input, " "); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user