can someone help me with loop dunno which one to use and how to start.
i basically want this program to loop the "enter money" part if the "else" is true
also if u have a better way to make a similar program please do tell thanks
do{
cout<<"enter money ";
cin>>money;
change=money-price;
if (money>price)
cout<<"your change is "<<change<<endl<<endl;
elseif (money==price)
cout<<"you have the exact amount thank you for shopping!"<<endl<<endl;
else
cout<<"insufficient cash, please enter the corect amount"<<endl<<endl;
}while (money<price);
return 0;
}