Initialization

This commit is contained in:
Kozar 2024-03-07 13:36:42 +01:00
parent c655f32716
commit fa83d0a9a5

View File

@ -14,6 +14,11 @@ int main() {
while (count < SIZE) { while (count < SIZE) {
if (scanf("%lf", &input) != 1) { if (scanf("%lf", &input) != 1) {
if (scanf("%c", &input) == 1) { if (scanf("%c", &input) == 1) {
if (count = 0){
printf("Nepodarilo sa nacitat zaklad x\n");
return 0;
}
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count); printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count);
return 0; return 0;
} }