#include <iostream> using namespace std; int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max = a>b?a:b; max = max>c?max:c; printf("%d",max); return 0; }
Double click to view unformatted code.