submition3

This commit is contained in:
kr820js 2024-04-20 18:51:53 +02:00
parent 01d6ac4513
commit 98a814b27a

View File

@ -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;
}