Ok I have one little problem and that's all I'm asking out of these forums (for now at least)!
I have a project that I have to do, you have to display this with loops:
*
**
***
****
*****
Now you can't just write
Code:
cout << "*\n";
cout << "**\n";
etc.
I'm supposed to write it with loops. This is all I have so far, and all I can get is a row of *'s going vertical :\ Sorry for asking so many questions, but it's probably a simple project, I've just never done anything like this before.
Code:
#include <iostream.h>
#include <stdio.h>
main()
{
int asterisks = 0;
do
{
cout << "*\n";
asterisks++;
}
while (asterisks < 6);
getchar();getchar();
return 0;
}