Question: can someone help me to convert this coding from cout to printf ?? and can try to run it ? basically this is for my
can someone help me to convert this coding from cout to printf ?? and can try to run it ?
basically this is for my assignment project, i need help asap
#include
drinks[choice-1].quantity--; } else cout << "Insufficient Funds "; } else if (choice == 6){ //if choice is six we will display revenu and drinks with their quantity cout << "Total Revenue : $"<< totalRevenue << " "; cout << "Drink \t Number Left "; for(i=0;i<=4;i++){ cout << drinks[i].name << "\t" << drinks[i].quantitiy << " "; } } else{ // if choice is not 6 and the drink is sold out then sold out will be shown cout<< "SOLD OUT "; } }while(choice!=6); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
