Computer Science, asked by Ashisbhue, 1 year ago

write a program in C to find the greatest number among three integers

Answers

Answered by raginimishra08082001
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