#include <stdio.h>
int main() {
int numbers[10]; // Array to store 10 numbers
int max, min, i;
printf("Enter 10 numbers separated by spaces:\n");
for (i = 0; i < 10; i++) {
scanf("%d", &numbers[i]);
}
max = min = numbers[0];
for (i = 1; i < 10; i++) {
if (numbers[i] > max) {
max = numbers[i];
}
if (numbers[i] < min) {
min = numbers[i];
}
}
printf("Maximum number: %d\n", max);
printf("Minimum number: %d\n", min);
return 0;
}