Advertisement
catalyn

n din 2 nr consecutive

Sep 25th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n;
  7. cin>>n;
  8. if(n%2==1)
  9. {
  10. {if(n/2+(n/2+1)==n)
  11. cout<<"da";}}
  12. else
  13. cout<<"nu";
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement