Advertisement
ArtisOracle

Untitled

Sep 29th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdlib.h>
  2.  
  3. int main (int argc, const char ** argv) {
  4.     if (argc == 2) {
  5.         int num1, num2;
  6.         num1 = atoi(argv[0]);
  7.         num2 = atoi(argv[1]);
  8.  
  9.         if (num1 > num2)
  10.             printf("The first number is greater than the second one.");
  11.         else
  12.             printf("The second number is greater than the first one.");
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement