This commit is contained in:
Pavol Rusnak 2011-04-24 20:10:17 +02:00
parent 9d4739bae0
commit a26d1eeb95
3 changed files with 56 additions and 53 deletions

View file

@ -102,7 +102,7 @@ void read_input()
last_item = -2;
printf("\n%s\n\n", items[i].name);
} else
if (items[i].price > 0) {
if (items[i].price < 0) {
last_item = i;
printf("\n%s %d Kc\n\n", items[i].name, abs(items[i].price));
} else