PROGRAM TO ENTER THREE NOS. AND PRINT THE BIGGEST AMONG THEM


#include<stdio.h>
#include<conio.h>
void main()
{
long int a,b,c,bg;
clrscr();

printf("ENTER THREE NOS.");

scanf("%ld%ld%ld",&a,&b,&c);
if(a<0||b<0||c<0)
printf("WRONG INPUT");

else
{
if(a>=b&&a>=c)
bg=a;
else if(b>=a&&b>=c)
bg=b;
else
bg=c;

printf("BIGGEST NO.%ld",bg);
}

getch();
}

SIMPLE PROGRAMS
FUNCTIONS


NUMBERS


STRINGS AND CHARACTERS

Comments