final8
This commit is contained in:
parent
a9f55400ac
commit
2af8b175da
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
double x, a, b, c, y;
|
double x, a, b, c, y;
|
||||||
if (scanf("%lf", &x) != 1){
|
if (scanf("%lf", &x) != 1 && x != 0){
|
||||||
printf("Nepodarilo sa načítať x");
|
printf("Nepodarilo sa načítať x");
|
||||||
return 0;
|
return 0;
|
||||||
} else if (scanf("%lf", &a) != 1){
|
} else if (scanf("%lf", &a) != 1 && a != 0){
|
||||||
printf("Nepodarilo sa načítať a");
|
printf("Nepodarilo sa načítať a");
|
||||||
return 0;
|
return 0;
|
||||||
} else if(scanf("%lf", &b) != 1){
|
} else if(scanf("%lf", &b) != 1 && b != 0){
|
||||||
printf("Nepodarilo sa načítať b");
|
printf("Nepodarilo sa načítať b");
|
||||||
return 0;
|
return 0;
|
||||||
} else if(scanf("%lf", &c) != 1){
|
} else if(scanf("%lf", &c) != 1 && c != 0){
|
||||||
printf("Nepodarilo sa načítať c");
|
printf("Nepodarilo sa načítať c");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user