#include <stdio.h>

int main() {
    int valores[9], maior, menor, i;

    for (i = 0; i < 10; i++) {
        scanf("%d", &valores[i]);
    }
    
    for (i = 0; i < 10; i++) {
        printf("%d\n", valores[i]);
        if (i == 0) {
            maior = valores[i];
            menor = valores[i];
        } else if (valores[i] > maior) {
            maior = valores[i];
        } else if (valores[i] < menor) {
            menor = valores[i];
        }
    }
    printf("Maior: %d\n", maior);
    printf("Menor: %d\n", menor);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: