fork download
  1. #include <stdio.h>
  2. int main() {
  3. int A,B;
  4. scanf("%d",&A);
  5. scanf("%d",&B);
  6. if(A<B)//ここからAとBを比較
  7. printf("%d<%d",A,B);
  8. else if(A==B)
  9. printf("%d=%d",A,B);
  10. else
  11. printf("%d>%d",A,B);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5304KB
stdin
3 1
stdout
3>1