#include <iostream>
using namespace std;
int main()
{
const int n=7;
float iarray[n];
float dable;
cout<<"enter values for your array"<<endl;
for(int i=0;i<1;i++)
{
cout<<"for element:"<<i<<endl;
cin>>iarray[i];
dable=iarray[i*2];
}
cout<<"these are the value in your array"<<endl;
for(int i=0;i<n;i++)
{
cout<<dable<<" ";
}
cout<<endl;
system("pause");
return 0;
}
when the output is show and i enter number 2 is become 2222222
HOW COME i dont understand the output,,helppp mee