refresh
This commit is contained in:
		
							parent
							
								
									7cc282f0c9
								
							
						
					
					
						commit
						045bbff402
					
				
										
											Binary file not shown.
										
									
								
							@ -15,12 +15,12 @@ int main() {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
            if (count == 0) {
 | 
			
		||||
                printf("Chyba. Malo platnych hodnot.\n");
 | 
			
		||||
                printf("Chyba: Málo platných hodnôt.\n");
 | 
			
		||||
                return 1;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            for (int i = 0; i < count; i++) {
 | 
			
		||||
                printf("Sutaziaci c. %d vypil %d poharov.\n",i+1,results[i]);
 | 
			
		||||
                printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            int max_value = results[0];
 | 
			
		||||
@ -31,7 +31,7 @@ int main() {
 | 
			
		||||
            }        
 | 
			
		||||
                for (int i = 0; i < count; i++) {
 | 
			
		||||
                    if (results[i] == max_value) {
 | 
			
		||||
                        printf("Vyherca je sutaziaci %d ktory vypil %d poharov.\n",i+1,results[i]);
 | 
			
		||||
                        printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",i+1,results[i]);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                return 0;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user