All pastes #929541 Raw Edit

promo

public text v1 · immutable
·published 2008-03-05 21:04 UTC
rendered paste body
enigmata@HappyTrees:~$ gcc /home/enigmata/Desktop/SalePromo.c
/home/enigmata/Desktop/SalePromo.c: In function ‘main’:
/home/enigmata/Desktop/SalePromo.c:48: error: expected ‘;’ before ‘{’ token
/home/enigmata/Desktop/SalePromo.c:90: error: expected ‘;’ before ‘}’ token
enigmata@HappyTrees:~$ ./a.out
Please select the Promotion of your choice: 1 or 2
1
Please enter Item Id: 1 through 10
2
Price 4.000000
Please enter Quantity:4
Subtotal 16.000000
Total 14.400000
Promo type 1
Item Id= 2 Quantity= 4 Discount Percent of Promo1= 0.100000 Item Price= 4.000000
Subtotal= 16.000000 Discount Amount= 1.600000 Total= 14.400000
You have entered an invalid item id
Do you wish to Proceed? Enter '1' to continue or '0' to end:
1
Please select the Promotion of your choice: 1 or 2
2
This Promotion does not exist
Do you wish to Proceed? Enter '1' to continue or '0' to end: