Commit 916527e7 by mialte

Update 2

parent 6b028474
Showing with 5 additions and 1 deletions
......@@ -17,7 +17,11 @@ int main() {
for (i=0; i<6; i++) {
printf("Katse %d: ", i+1);
scanf("%f", &tulemus[i]);
if (scanf("%f", &tulemus[i]) != 1) {
printf("Vigane sisend! Palun sisesta number. \n");
return 1;
}
if(i>0) {
float erinevus = tulemus[i] - eelmine;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment