Q-15.Write a program that Below is the C program to find the largest among the three numbers

0
Below is the C program to find the largest among the three numbers:

  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,b,c,m;
  5. printf("ENTER VALU:");
  6. scanf("%d%d%d",&a,&b,&c);
  7. m=a;
  8. if(b>m)m=b;
  9. if(c>m)m=c;
  10. printf("The largest is. %d",m);
  11. }

OUTPUT
                                                                                                                                                                   




Post a Comment

0Comments
Post a Comment (0)