Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void kwadrat(int n){
- for(int i=0; i<n; i++){
- for(int j=0; j<n; j++)
- cout<<"*";
- cout<<endl; }
- }
- int main(){
- kwadrat(4);
- cout<<endl;
- kwadrat(8);
- cout<<endl;
- kwadrat(2);
- cout<<endl;
- kwadrat(3);
- cout<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment