find largest of 3 no

Answer Posted / deepshree sinha

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("enter any three numbers");
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
if(a>c)
printf("the biggest no.=%d",a);
else
printf("the biggest no.=%d',c);
}
else
{
if(b>c)
printf("the biggest no.=%d",b);
else
printf("the biggest no.=%d",c);
}
getch();
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1586


Why is c so important?

606


What is local and global variable in c?

627


What does nil mean in c?

683


Why c is called procedure oriented language?

591






what will be the output for the following main() { printf("hi" "hello"); }

9357


What is the default value of local and global variables in c?

567


Discuss the function of conditional operator, size of operator and comma operator with examples.

690


Define recursion in c.

708


Write a program of advanced Fibonacci series.

715


What is double pointer in c?

599


What is a keyword?

757


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1874


Which is better pointer or array?

612


What is selection sort in c?

617