Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[]) {
- int montoInicial;
- cout<<"Ingrese cantidad monetaria"<<endl;
- cin>>montoInicial;
- do {
- montoInicial=(montoInicial-2000);
- cout<<"1 Papeleta de 2,000"<<endl;
- } while(montoInicial>2000);
- do {
- montoInicial=(montoInicial-1000);
- cout<<"1 Papeleta de 1,000"<<endl;
- } while(montoInicial>1000);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement