Untitled

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { const int n = 9; const int M = 28; int Array[M]; int randomDigits_2[10] {}; int a[n]; int sum = 0; //for (int i = 1; i <=28; i++) for (int i = 0; i <=28; i++) { randomDigits_2[i] = 1 + rand() % 12; } cout << endl << "Массив c числами oт 1 до 12: "; for (int i = 0; i <= 28; i++) { cout << randomDigits_2[i] << " "; } /*for (int i=0; i<n; i++) { a[i] = i + 1; cout <<a[i] <<' '; sum+=a[i]; }*/ return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines