Advertisement
alex326

Untitled

Jan 16th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. problema 833
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. int a,b;
  8. cin>>a>>b;
  9. if (a-b==0)
  10. cout<<"Copiii au varste egale";
  11. else
  12. if (a-b>0)
  13. cout<<"Primul copil este mai mare cu "<<a-b<<" ani";
  14. else
  15. cout<<"Al doilea copil este mai mare cu "<<b-a<<" ani";
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement