P017.c (307B)
1 /* Find maximum between three number. */ 2 3 #include <stdio.h> 4 int main() 5 { 6 int a, b, c, max; 7 printf("Enter the value for a, b, c : "); 8 scanf("%d %d %d", &a, &b, &c); 9 max = a; 10 if (max < b) 11 max = b; 12 if (max < c) 13 max = c; 14 printf("Maximum : %d", max); 15 return 0; 16 }