fork download
  1. //6801011610428
  2. //Kotchakorn Onmanee
  3. //S.2
  4. //PIV
  5.  
  6. #include <stdio.h>
  7.  
  8. int main(void)
  9. {
  10. int a, b;
  11. //import two numbers
  12. printf (“Enter two numbers”);
  13. scanf (%d %d “,&a,&b);
  14. //compare numbers
  15. if (a>b)
  16. printf (max is:%d”,a);
  17. else
  18. printf (max is:%d”,b);
  19. return 0;
  20. }
Success #stdin #stdout 0.02s 25876KB
stdin
Standard input is empty
stdout
//6801011610428
//Kotchakorn Onmanee
//S.2
//PIV

#include <stdio.h>

int main(void)
{
    int a, b;
    //import two numbers
    printf (“Enter two numbers”);
    scanf (“%d %d “,&a,&b);
    //compare numbers
    if (a>b)
       printf (“max is:%d”,a);
    else
    printf (“max is:%d”,b);
    return 0;
}