Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 833
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b;
- cin>>a>>b;
- if (a-b==0)
- cout<<"Copiii au varste egale";
- else
- if (a-b>0)
- cout<<"Primul copil este mai mare cu "<<a-b<<" ani";
- else
- cout<<"Al doilea copil este mai mare cu "<<b-a<<" ani";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement