#include <stdio.h>
int main(void)
{
int a , b, c, d, mix, mix1, mix2, max, max1, max2;
printf("Enter four integers: ");
scanf("%d %d %d %d", &a, &b, &c, &d);
if (a < b) {mix1 = a; max1 = b;}
else {mix1 = b; max1 = a;}
if (c < d) {mix2 = c; max2 = d;}
else {mix2 = d; max2 = c;}
if (mix1 < mix2) {mix = mix1;}
else {mix = mix2;}
if (max1 > max2) {max = max1;}
else {max = max2;}
printf("Largest: %d\nSmallest: %d\n", max, mix);
getchar();
getchar();
return 0;
}