refresh
This commit is contained in:
		
							parent
							
								
									a7d308ae66
								
							
						
					
					
						commit
						164282f73c
					
				
										
											Binary file not shown.
										
									
								
							| @ -11,16 +11,16 @@ int main() { | |||||||
|             break; |             break; | ||||||
|         } |         } | ||||||
|             results[count] = num; |             results[count] = num; | ||||||
|             count++; |             count++; //нумерация чисел 
 | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|             if (count == 0) { |             if (count == 0) { //если не было введено никакое число
 | ||||||
|                 printf("Chyba: Málo platných hodnôt.\n"); |                 printf("Chyba: Malo platnych hodnot.\n"); | ||||||
|                 return 0; |                 return 0; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             for (int i = 0; i < count; i++) { |             for (int i = 0; i < count; i++) { //выписывание всех чисел 
 | ||||||
|                 printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); |                 printf("Sutaziaci c. %d vypil %d poharov.\n",i+1,results[i]); | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             int max_value = results[0]; |             int max_value = results[0]; | ||||||
| @ -31,7 +31,7 @@ int main() { | |||||||
|             }         |             }         | ||||||
|                 for (int i = 0; i < count; i++) { |                 for (int i = 0; i < count; i++) { | ||||||
|                     if (results[i] == max_value) { |                     if (results[i] == max_value) { | ||||||
|                         printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",i+1,results[i]); |                         printf("Vyherca je sutaziaci %d ktory vypil %d poharov.\n",i+1,results[i]); | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 return 0; |                 return 0; | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								du1/program.exe
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								du1/program.exe
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user