Find largest among three numbers in C program

// to find largest among three numbers

#include<stdio.h>
#include<conio.h>

int main()
{
int a,b,c;
printf(“enter three numb\n”);
scanf(“%d%d%d”,&a,&b,&c);
if(a>b)
   {
     if(a>c)
      {
       printf(“%d a is greater\n”,a);
      }
     else
      {
       printf(“%c is greater\n”,c);
      }
    }
    else
    {
     if(b>c)
       {
          printf(“%d b is greater\n”,b);
        }
        else
        {
        printf(“%d c is greater\n”,c);
        }
    }

getchar();
}

Output:

enter three numb.
85
42
35
85 a is greater

[Process completed – press Enter]

WHY C IS CALLED A MIDDLE LEVEL LANGUAGE ?

C is called middle-level language because it is actually fill the gap between a machine level language and high-level languages. User can use c language to do System Programming (for writing operating system) as well as Application Programming (for generate menu driven customer billing system ). That’s why it is called middle level language.read more….click here

features of c language

C language and its history…