Select Menu

Slider

Software's

Transportation

Cement Testing

Inventor

Manual Survey Practical

Quantity Surveying

Videos

» » To Find Largest among Three Number (C-Programming)
«
Next
Newer Post
»
Previous
Older Post


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\nenter 3 value");
scanf("%d %d %d",&a,&b,&c);

if(a>b&&a>c)
printf("\nA is largest");
if(b>a&&b>c)
printf("\nB is largest");
if(c>a&&c>b)
printf("\nC is largest");
if(a==b&&a==c)
printf("\nAll are same");
getch();
}                        f

«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply

Post Your Comments