Untitled
unknown
plain_text
2 years ago
395 B
4
Indexable
#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; }
Editor is loading...
Leave a Comment