#include<stdio.h> int compare(int m,int n) { if(m>n)return m; else return n; } main() { int a,b,c,mmax,max; scanf("%d %d %d",&a,&b,&c); mmax=compare(a,b); max=compare(mmax,c); printf("%d\n",max); return 0; } |
Double click to view unformatted code.