Computer Science, asked by Ritikkashyap1, 1 year ago

write the program to find the largest number among three number

Answers

Answered by bhumikabhumi09
0
in this max means the largest one ......and if u have any query regarding this .....then ask me
Attachments:
Answered by siddhartharao77
0
int main()
 {
    int a, b, c;

     printf("Enter first number ");
     scanf("%d",&a);

     printf("\nEnter second number ");
     scanf("%d",&b);

     printf("\nEnter third number ");
     scanf("%d",&c);
     
   if(a>b && a>c)
   printf("\n%d is the greatest number ",a);

   else if(b>c)
   printf("\n%d is the greatest number ",b);

   else
    printf("\n%d is the greatest number ",c);

    getch();
 }
Similar questions