Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
395 B
1
Indexable
Never
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
    int mas[10];
    int a;
    int b;
    cin >> b >> a;
    for (int i = 0; i < 10; i++){
        cin >> mas[i];
    }
    for (int i = 0; i < 10; i++){
        if (mas[i] > b)
            mas[i] = b;
        if (mas[i] < a)
            mas[i] = a;
            cout << mas[i];
    }
    return 0;
}
Leave a Comment