al__nasim

Comparing two long integers

Jan 11th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. long a,b;
  5. scanf("%ld %ld",&a,&b);
  6. if(a<b)
  7. printf("<");
  8. else if(a==b)
  9. printf("=");
  10. else
  11. printf(">");
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment