Search This Blog

Saturday, 16 May 2020

programme C(high number)

  at three numbers find high one(if content)

#include <stdio.h>
int main()
{
     int no1,no2,no3,max;
     printf("Enter Three Numbers ");
     scanf("%d %d %d", &no1, &no2, &no3);
     max=no1;
     if(no2>max)
     max=no2;

     if(no3>max)
     max=no3;

     printf("The Highest is %d \n",max);
}

    

No comments:

Post a Comment

please wait...