Witam mam problem z wieża z * polega ona na tym ,że w wyświetla mi cały wszystko pod sobą a a nie jak we wieży w sumie to połowie wieży. :)
Kod:
#include <iostream>
#include <cstdlib>
using namespace std;
int j, p;
int main()
{
cout << "Wieza" << endl;
cout << "Podaj ilosc gwiazdek pionowo:";
cin >> p;
for (int i=0; i<p; i++)
{
for (j=0; j<p;j++)
cout <<"*";
cout <<endl;
}
cout <<endl;
return 0;
}