Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int init;
  7. int dollar = 100;
  8. int cent = 10;
  9. int ccent = 20;
  10. int cccccent = 50;
  11. int one = 1;
  12. cout << "How much do you wanna change (one cent coins :p)?" << endl;
  13. cin >> init;
  14. strlen(init) >> x;
  15. cout << x << endl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement