Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * C program to find maximum between two numbers
- */
- #include <stdio.h>
- int main()
- {
- int num1, num2;
- /* Input two numbers from user */
- printf("Enter two numbers: \n");
- scanf("%d%d", &num1, &num2);
- if(num1 > num2)
- {
- printf("\n%d is maximum\n", num1);
- }
- else
- {
- printf("\n%d is maximum\n", num2);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement