Advertisement
tolfasn

DoubleInts

Feb 8th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main( void )
  4. {
  5.     int inputOne;
  6.     int inputTwo;
  7.     int larger;
  8.  
  9.     printf ("Please enter your first integer: \n");
  10.     scanf("%d", &inputOne);
  11.  
  12.     printf ("Please enter your second integer: \n");
  13.     scanf ("%d", &inputTwo);
  14.  
  15.     if (inputTwo > inputOne){
  16.         larger = inputTwo;
  17.     }
  18.  
  19.     else {
  20.         larger = inputOne;
  21.     }
  22.  
  23.     printf(larger);
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement