write a program in 'C' to enter three integers and print the maximum integer?
#include< main() { int a, b, c, max; printf("Enter three integers\n"); scanf("%d %d %d", &a, &b, &c); max = (a>b)?a:b; max = (max> printf("The maximum integer is = %d\n", max); return(0); } |
---|
For eg :-
Output :-
Enter three integers
12 20 50
The maximum integer is = 50
0 comments:
Post a Comment