Update 'cv3/program.c'
This commit is contained in:
		
							parent
							
								
									37e8c6d95e
								
							
						
					
					
						commit
						20615955e6
					
				| @ -18,6 +18,7 @@ int main() { | |||||||
|     if (scanf("%lf", &x) != 1) { |     if (scanf("%lf", &x) != 1) { | ||||||
|         printf("Nepodarilo sa nacitat zaklad x\n");  |         printf("Nepodarilo sa nacitat zaklad x\n");  | ||||||
|         return 0;  |         return 0;  | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     while (scanf("%lf", &coef) == 1) { |     while (scanf("%lf", &coef) == 1) { | ||||||
|         coefficients[count++] = coef; |         coefficients[count++] = coef; | ||||||
| @ -32,5 +33,5 @@ int main() { | |||||||
|     double result = evaluatePolynomial(x, coefficients, count); |     double result = evaluatePolynomial(x, coefficients, count); | ||||||
|     printf("Vysledok je: %.2f\n", result); |     printf("Vysledok je: %.2f\n", result); | ||||||
| 
 | 
 | ||||||
|     return 1; |     return 0; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user