C++Syntax
#include "stdafx.h"
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
srand(time(0));
int arr[10]={0};
for(int i=0;i<10;i++)
{
arr[i]=rand()%50+1;}
for(int i=0;i<10;i++){
cout<<arr[i]<<endl;
}
return 0;
}
I want to use the * to display the output, what I should improve?