Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. int a, i, k;
  8. cin >> a >> k;
  9.  
  10. i = 0;
  11. while( a > 0){
  12. i++;
  13. a = a / 10;
  14. }
  15.  
  16. if (i == k) cout << "Udacha" << endl;
  17. else
  18. cout << "Neudacha" << endl;
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement