Question
can someone help me to change this conding from cin to scanf and change strpcy to something simple like int or printf or idk because
can someone help me to change this conding from cin to scanf and change strpcy to something simple like int or printf or idk because it out of my syllabus . and also run the programme.
#include
drinks[choice-1].quantitiy--; } else printf("Insufficient Funds "); } else if (choice == 6){ //if choice is six we will display revenu and drinks with their quantity printf("Total Revenue : $ %f ", totalRevenue); printf("Drink \t Number Left "); for(i=0;i<=4;i++){ printf(" %s \t %d ",drinks[i].name , drinks[i].quantitiy); } } else{ // if choice is not 6 and the drink is sold out then sold out will be shown printf("SOLD OUT "); } }while(choice!=6); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started