BACHELOR OF COMPUTER APPLICATION (B.C.A.) FIRST SEMESTER
Here you will get simple C program
C Language Program for Find The Largest From Three No’s..
IT IS THE SMALLEST LOGIC USED FOR CODING OF THIS PROGRAM.
IN WHICH YOU CAN CREATE OWN VARIABLES AND FUNCTIONS.
User will input three numbers and
then their Largest number will be calculated and
finally it will be printed on screen.
The program coding is given below.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter Any Three Value's = ");
scanf("%d %d %d",&a,&b,&c);
if((a>b)&&(a>c))
{
printf("A is Largest Number");
}
if (b>c)
{
printf("B is Largest Number");
}
else
{
printf("C is Largest Number");
}
getch();
}
Output will be given after you compile it.
No comments:
Post a Comment