This is probably easy for most, but I can't seem to figure it out. This is in C++ btw.
#include <iostream>
using namespace std;
int main()
{
int name[12];
int i;
for(int i=0; i<12; i++) name[i] = i;
for(i=0; i<12; i++)
cout << "This is letter ["<< i <<"]: " << name[i] << "\n";
}
int dummy;
cin >> dummy;
return 0;
}
I have to use dummy's because the PC won't display anything without it.
This is what I have so far, I'm not really sure about what to do from here. I'm not even sure if this is correct, lol.
Help>
#include <iostream>
using namespace std;
int main()
{
int name[12];
int i;
for(int i=0; i<12; i++) name[i] = i;
for(i=0; i<12; i++)
cout << "This is letter ["<< i <<"]: " << name[i] << "\n";
}
int dummy;
cin >> dummy;
return 0;
}
I have to use dummy's because the PC won't display anything without it.
This is what I have so far, I'm not really sure about what to do from here. I'm not even sure if this is correct, lol.
Help>











Comment