Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,q;
- cin>>n;
- q=n/4;
- if(n%4==1)
- {
- cout<<"+";
- }
- if(n%4==2)
- {
- cout<<"---+";
- }
- if(n%4==3)
- {
- cout<<"-+";
- }
- for(int i=0;i<q;i++)
- {
- cout<<"+--+";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement