My name is Mysies and i am a beginner to c++. I don't very much, but i try to learn as much as i can.
I have a question to ask and that is how to make characters disappear.
so far my output looks like this:
zzz
zzz
zzz
But i want it to look like this:
zzz
zz
z
here is my c++ code:
- Code: Select all
#include <iostream>
using namespace std;
int main()
{
for(int a = 0; a < 3; a++)
{
for(int b = 0; b < 3; b++ )
{
cout << "z";
}
cout << endl;
}
system("pause");
return 0;
}
i have tried with:
for (int b = 3; b > 0; b--), but it just gives me the same output.
is there a way to make the characters disappear?
