Share your repls and programming experiences

← Back to all posts
Per lino
JumboWRLD999

#include <iostream>
#include <time.h>
using namespace std;

int main() {
int dim=5;
int elenco [dim];
for (int i=0; i<5; i++){
cin>>elenco[i];
}

int dim=10,i;
int lista[dim];
cout<<"inserisci 10 valori: "<<endl;
for(i=0; i<10; i++)
{
cin>>lista[i];
}

int main() {
int x, tubo[x];
srand (time(NULL));
x=rand()%10+1;
cout<< "NUmero casuale: "<<x<<endl;
for (int c=0; c<x; c++){
cin>>tubo[c];
cout<< tubo[c]<<endl;
}

}
return 0;
}

Voters
JumboWRLD999