+ 1
single pump station (C)
i really need your help. I don't know how to do this. I'm just newbie here and I'm still learning C. If you don't mind, can you help me create code in a single pump station? here's the procees: 1. filling up the fuel reservoir 2. dispense fuel for sales 3. display notify user on sales and rem. volume thanks for your help
3 Antworten
+ 1
Thanks for this
0
take fuel resurver as x cc vol
copy it in temp--temp=x
in while loop
it will take choice if one wants to buy or not
if yes
user gives (scanf) volumn in cc(suppose y)
if x<y
x=temp(filled)
x=x-y
price=y/per_cc_price
then print rem is x
sales is price
loop will go if choice is yes..
if no loop program ends...
use switch case for choice
- 1
welcome brother