Find largest value in C language

  1. #include<stdio.h>  
  2. #include<conio.h>  
  3. main()  
  4. {  
  5.     // this program user input and find the largest value of output  
  6.     int num1, num2;  
  7.     printf("Enter the Value of num1\n");    //request to user enter input  
  8.     scanf("%d",&num1);  
  9.     printf("Enter the Value of num2\n");  
  10.     scanf("%d",&num2);                 //user input accept the value  
  11.     if(num1>num2)          //condition check is num1 is greater of num2  
  12.     {  
  13.         printf("The Largest Value is %d", num1);    // when true condtion of if then print num1 value   
  14.           
  15.     }  
  16.     else                  
  17.     {  
  18.         printf("The Largest Value is %d", num2);     // else is not any condition its only like statement  
  19.     }  
  20. }