#include #include int main() { char ch = 'g'; do { int i, n, k = 0; int *a; srand(time (NULL)); printf("\nEnter n:\n"); scanf(" %d", &n); /*Задание динамического массива а из n элементов*/ a = (int*) malloc (n*sizeof(int)); for(i=0; i