From 98a814b27ae43e74718e61f7e6fb94136eea11bd Mon Sep 17 00:00:00 2001 From: kr820js Date: Sat, 20 Apr 2024 18:51:53 +0200 Subject: [PATCH] submition3 --- cv10/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv10/program.c b/cv10/program.c index 2cd0f85..b5c7e62 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -15,7 +15,7 @@ int main() char qty_buffer[10]; fgets(qty_buffer, sizeof(qty_buffer), stdin); quantity = atoi(qty_buffer); - if(quantity==0){ + if(quantity<=0){ puts("Nespravny vstup"); return 0; }