Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int k,l,n;
- cout<<"vvedite chislo: ";
- cin>>n;
- for(k=0;k<n;k++){
- if(k%2==0){
- for (l=0;l<2*n;l++){
- cout<<"/";
- }
- cout<<endl;
- }
- else{
- for (l=0;l<2*n;l++){
- cout<<"\\";
- }
- cout<<endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement