my professor has a assignment for us... this is the directions
"write a c++ program that declares an array alpha of 50 elements of type float initializxa the array the 1st 25 elemensts are equal to the square of the index variable and the remaining elements are equal to 3x the variable
heres my code
#include <iostream>
#include <cmath>
using namespace std;
int main (){
int alpha[50];
for (int b=0; b>25; b++);
for (int a=0; a>25; a++);
alpha[a]= b*b;
cout<< alpha[b]<<"\n";
return 0;
}
the out put is 0 it doesnt ouput the 50 elements on the program..
ill be aso thankful if youll consider this...thanks