#include <iostream.h>//для vs <iostream> #include <conio.h> /* для vs : using std::cin; using std::cout; using std::endl; using std::srand; using std::rand;*/ int main(){ int a[16],i,n; randomize();//<->srand; cout<<"EXIT-0\n"; while(n!=0 ){ M: cout<<"Vvedite Razmer Massiva (N<=16) :\n"; cin>>n; if(n>16) cout<<"Error! N>16 . Try again\n"; if(n>16) goto M; for (i=0;i<n;i++) a[i]=random(100);//<->rand(); cout<<endl; for (i=0;i<n;i++) cout<<a[i]<<" "; cout<<endl;} getch(); return 0; }
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota
Оформи подписку