write a program in C to find the greatest number among three integers
Answers
Answered by
3
Answer:
#include<stdio. h>
#include<conio. h>
void main ()
{
int a, b, c;
clrscr();
printf("enter the three number ");
scanf("%d", &a, &b, &c);
if((a<b) &&(a<c))
{
printf ("a is the greatest number ");
}
if((b<a) && (b<c))
{
printf ("b is the greatest number ");
}
else
{
(" c is the greatest number ");
}
getch();
}
Similar questions
Social Sciences,
7 months ago
Math,
7 months ago
English,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago