#include <iostream>
using namespace std;
int main()
{
int n,i;
cout<<"Enter n: ";
cin>>n;
int num[n];
for(i=0;i<n;i++)
{
cout<<"Enter "<<i<<" number:";
cin>>num[i];
}
using namespace std;
int main()
{
int n,i;
cout<<"Enter n: ";
cin>>n;
int num[n];
for(i=0;i<n;i++)
{
cout<<"Enter "<<i<<" number:";
cin>>num[i];
}
No comments:
Post a Comment