Advertisement
BunchiePC

Czworokat z dowolnych znakow

Nov 20th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main()
  7. {
  8.     int w=0,s=0;
  9.     char znak;
  10.     cout<<"Wprowadz wysokosc, a nastepnie szerokosc: "<<endl;
  11.     cin>>w;
  12.     cin>>s;
  13.     cout<<"Podaj znak graficzny: "<<endl;
  14.     cin>>znak;
  15.  
  16.     for(int i=0;i<w;i++)
  17.     {
  18.         for(int j=0;j<s;j++)
  19.         {
  20.             cout <<znak;
  21.         }
  22.         cout<<endl;
  23.     }
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement