fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b;
  6. scanf("%d",&a);
  7. scanf("%d",&b);
  8. printf("あなたが順番に入力した数字は%d、%dです。\n",a,b);
  9. if(a<b)//aよりもbの方が大きいとき
  10. printf("%d<%d\n",a,b);
  11. else if(a>b)//aはbよりも大きいとき
  12. printf("%d>%d\n",a,b);
  13. else//どちらでもなかったとき
  14. printf("%d==%d\n",a,b);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5300KB
stdin
1
1
stdout
あなたが順番に入力した数字は1、1です。
1==1