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