Ответы на вопрос:
#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; }
Популярно: Информатика
-
пухля1326.05.2021 19:25
-
isadulla05.05.2021 09:10
-
Женя372527.10.2020 00:20
-
Евридика125.08.2022 22:12
-
srySyutoduofyi19.11.2020 13:17
-
googlman01.01.2023 11:58
-
Danilfaha21.06.2022 02:03
-
nastiamakeeva019.08.2021 13:50
-
Сutie200422.10.2020 09:57
-
magic000027.01.2021 12:40