Program rysuje prostakat o bokach x,y
Napisano w Programy
#include<iostream>
#include<cstdlib>
using namespace std;
int x,y;
int main()
{
cout << “*********************************************************\n”;
cout << “****** program rysuje wypelniony prostokat **************\n”;
cout << “****** dla podanych bokow x i y *************************\n”;
cout << “*********************************************************\n\n\n”;
cout<<“podaj x, wysokosc:”;
cin >>x;
cout << “podaj y, szerokosc:”;
cin>>y;
cout<<endl<<endl;
for(int i=1; i<=x; i++)
{
for(int j=1; j<=y; j++)
cout<<“*”;
cout<<endl;
}
}