Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int numb;
  7. cout << "Unesi trocifreni broj: ";
  8. do {
  9. cin >> numb;
  10. cout << "yup";}
  11. while (numb >= 100 and numb < 1000);
  12.  
  13. while(numb > 0)
  14. {
  15. int mod;
  16. mod = numb % 10;
  17. numb /= 10;
  18.  
  19. if (mod == 0)
  20. continue;
  21. else
  22. cout << mod;
  23.  
  24.  
  25. }
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement