Write a program in c Find maximum amongst three number
Answers
Answered by
0
first Make basic structure
then put int
Attachments:
Answered by
0
Answer:
hope you like this
in this I use conditional operators
Explanation:
#include<stdio.h>
#include<ctype.h>
int main ()
{
int a,b,c,x;
printf("Enter three numbers:\n");
scanf("%d%d%d",&a,&b,&c);
x=(a>b)?((a>c)?a:c)):[(b>c)?b:c];
printf("gratest no. is:%d",x);
return 0;
}
Similar questions