#include int main( ) { bool in = true; int i, a, maxn, minn; for ( i = 0; i < 5; i++ ) { scanf("%d", &a); if ( in ) { maxn = minn = a; in = false; } if ( maxn < a ) maxn = a; if ( minn > a ) minn = a; } printf("Max = %d\nMin = %d\n", maxn, minn); return 0; }