05.10.2012, 17:53
so i decided to make a code where i can make a TRIANGLE using only one "*" (staric character) for loops.i dont want to simply print multiple sterrics by myself. so please tell me what is wrong with my code?
The result should be like this:
*
**
***
****
*****
******
Код:
#include <iostream> using namespace std; int main() { int i,j; for(i=1;i<=6;++i) { for(j=1;j<=6;++j) cout<<"*"; cout<<endl; } return 0; }
*
**
***
****
*****
******