fork download
  1. //180と1080、180と1010を入力し、180==1080、180>1010と表示された。
  2. #include<stdio.h>
  3.  
  4. int main()
  5. {
  6. int a,b,c,d;
  7.  
  8. scanf("%d",&a);
  9. scanf("%d",&b);
  10.  
  11. c=a%100;
  12. d=b%100;
  13.  
  14. if ( c<d )
  15. printf("%d<%d\n",a,b);
  16. else if ( c>d )
  17. printf("%d>%d\n",a,b);
  18. else
  19. printf("%d==%d\n",a,b);
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0.01s 5280KB
stdin
180
1080
stdout
180==1080