Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- int main(int argc, char** argv) {
- int a,b,h;
- cout<<"podaj wysokosc "<<endl;
- cin>>h;
- cout<<"szerokosc" <<endl;
- cin>>a;
- for (int i=1;i<=a;i++)
- cout<<"*";
- cout<<endl;
- for (int i=1 ; i<=h ; i++){
- cout<<"*";
- for(int j=1 ; j<=(a-2);j++)
- cout<<" ";
- cout<<"*"<<endl;
- }
- for (int i=1;i<=a ;i++)
- cout<<"*";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement