Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include "math.h"
- #include "iostream"
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- float a, b, y;
- int massiv[100];
- setlocale(LC_ALL,"russian");
- cout<<"Введите элемент массива А"<<endl;
- cin>>a;
- cout<<"Введите элемент массива В"<<endl;
- cin>>b;
- cout<<"Элементы массива"<<endl;
- for (int i=a; i<b; i++)
- {
- massiv[i] = rand()%100;
- cout<<massiv[i]<<endl;
- }
- cout<<"Этап второй:"<<endl;
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment