fork download
  1.  
  2. // C code
  3. // Developer: Han Le CMIS102
  4. // Date: Sep 10,2019
  5. #include <stdio.h>
  6. int main ()
  7. {
  8. /* variable definition: */
  9. int a = 0;
  10. int b = 0;
  11.  
  12. /* variable initialization */
  13. printf("\n\tCompared Program, by Han Le\n");
  14.  
  15. printf("\nEnter the value of a: ");
  16. scanf("%d", &a);
  17. printf("\nwith a: %d\n", a);
  18. printf("\nEnter the value of b: ");
  19. scanf("%d", &b);
  20. printf("\nwith b: %d\n", b);
  21.  
  22.  
  23. if(a > b)
  24. printf("a > b");
  25. else
  26. printf("a < b");
  27.  
  28.  
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 4496KB
stdin
1
2
stdout
	Compared Program, by Han Le

Enter the value of a: 
with a: 1

Enter the value of b: 
with b: 2
a < b