i have this problem i done the coding but it is not working can some one guide me where is the mistake
Write a program that declares an array Alpha of 50 components of the type float. Initialize the array so that the first 25 components are equal to the square of the index variable and the last 25 components are equal to three times the index variable. Out put that array so that 10 elements per line are displayed on the screen.
Float Alpha[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25};
Float Index, Square;
Index=0;
Square=2*index;
While (index<=25)
{
Alpha[Index]= =Square;
Index++;
}
Float Alpha []={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25};
Float Index, Times;
Index=0;
Times= Index*3;
While (index<=25)
Alpha[index]=Times;
Index++;
}
cout<<”the 10 Array elements are:”;
cin>>Alpha[1]>>Alpha[2] >>Alpha[3]>>Alpha[4]>>Alpha[5]>>Alpha[6] >>Alpha[7] >>Alpha[8] >>Alpha[9] >>Alpha[
Write a program that declares an array Alpha of 50 components of the type float. Initialize the array so that the first 25 components are equal to the square of the index variable and the last 25 components are equal to three times the index variable. Out put that array so that 10 elements per line are displayed on the screen.
Float Alpha[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25};
Float Index, Square;
Index=0;
Square=2*index;
While (index<=25)
{
Alpha[Index]= =Square;
Index++;
}
Float Alpha []={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,24,25};
Float Index, Times;
Index=0;
Times= Index*3;
While (index<=25)
Alpha[index]=Times;
Index++;
}
cout<<”the 10 Array elements are:”;
cin>>Alpha[1]>>Alpha[2] >>Alpha[3]>>Alpha[4]>>Alpha[5]>>Alpha[6] >>Alpha[7] >>Alpha[8] >>Alpha[9] >>Alpha[