I'll try and stay away from him..
But it's still not working..
I used some of what you told me,
Code:
#include <iostream.h>
#include <conio.h>
main()
{
int change;
int q=0,d=0,n=0,p=0;
while(change > 0)
{
if (change >= 25)
{
q++;
change = change - 25
continue;
}
if(change >= 10)
{
d++;
change = change - 10;
continue;
}
if(change >= 5)
{
n++;
change = change - 5;
continue;
}
if(change >=1)
{
p++;
change = change - 1;
continue;
}
}
cout << "Amount of quarters " << q << '\n';
cout << "Amount of dimes " << d << '\n';
cout << "Amount of nickels " << n << '\n';
cout << "Amount of pennies " << p << '\n';
return 0;
}
I also tried compiling yours, and when I enter something in, it crashes. Maybe it's because im using the dev c++ compiler? D: