Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. int main()
  3. {
  4. int i,n,a[10],b[10];
  5. cin>>n;
  6. for(i=0;i<n;i++)
  7. {
  8.  
  9. cin>>a[i]>>b[i];
  10. }
  11. for(i=0;i<n;i++)
  12. {
  13. if(a[i]>b[i])
  14. cout<<"Participant 1 winsn";
  15. else
  16. cout<<"Participant 2 winsn";
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement