Самостоятельная работа 6 №3

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { ////////////////////////////////////////////// Задание №3 Вариант 80 //////////////////////////////////////////////// srand ( time(NULL) ); int cars[29]; for(int i = 0;i < 30;i++){ cars[i] = rand() % 200 + 100; if(cars[i] > 200) cout << cars[i] << " л.с - мощность автомобиля превышает 200 л.с" << endl; else cout << cars[i] << " л.с" << endl; } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines