C Program : "Find maximum number from two number" with output

#include <stdio.h> int main() { int num1, num2; printf("Enter the first number: "); scanf("%d", &num1); printf("Enter the second number: "); scanf("%d", &num2); if (num1 > num2) { printf("Maximum number is: %d\n", num1); } else { printf("Maximum number is: %d\n", num2); } return 0; }



Enter the first number: 7 Enter the second number: 12 Maximum number is: 12

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management