Question: #include int main ( ) { int num 1 , num 2 ; / * Input two numbers from user * / printf (

#include int main(){ int num1, num2; /* Input two numbers from user */ printf("Enter two numbers: "); scanf("%d%d", &num1, &num2); /* If num1 is maximum */ if(num1> num2){ printf("%d is maximum", num1); }/* If num2 is maximum */ if(num2> num1){ printf("%d is maximum", num2); }/* Additional condition check for equality */ if(num1== num2){ printf("Both are equal"); } return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!