30 марта 2015 г.

Вывести на экран прямоугольник из символов 20 на 20

int str;
int star_count;
int length=20;
str=1;
while(str<=length)
{
star_count=1;
while(star_count<=length)
{
cout<<"$";
star_count++;
}
cout<<"\n";
str++;
}

Комментариев нет:

Отправить комментарий