This code has errors
#include <iostream>
void main()
{
int var [10];
for (I=0; I<5; I++)
cout << var(i);
}
Now what I have come up with is this to correct the errors that I see.
#include <iostream>
using namespace std;
void main()
{
int var [10];
for (i=0; i<5; i++)
{
cout << var(i)<<endl;
}
}
I think I fixed all the mistakes but can't get my compiler to run at the moment. I was wondering if there is anything else that I miss correcting the first program. Everything looks right to me but my gut says differently.
please let me know if I have another mistake or if I found them all.