Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout<<"Przyklad a: "<<endl;
- for (int i = 0; i < 15; i++)
- {
- if(i%3 == 0)
- cout<<"*";
- else if(i%3 == 1)
- cout<<"-";
- else
- cout<<"%";
- }
- cout<<endl<<endl;
- cout<<"Przyklad b:"<<endl;
- for (int i = 1; i < 5; i++)
- {
- for (int j = 0; j < i; j++)
- cout<<"*";
- for (int k = 0; k < 2;k++ )
- {
- if(i%2 == 0)
- cout<<"^";
- else
- cout<<"&";
- }
- }
- cout<<endl<<endl;
- cout<<"Przyklad d:"<<endl;
- for (int i = 0; i < 5; i++)
- {
- for (int j = 0; j < i; j++)
- {
- if(i%2 == 0)
- cout<<"%";
- else
- cout<<"$";
- }
- cout<<"*";
- }
- cout<<endl<<endl;
- cout<<"Przyklad e:"<<endl;
- for (int i = 0; i < 5; i++)
- {
- for (int j = 0; j < 5; j++)
- {
- if((i*5+j) % 2==0)
- cout<<"* ";
- else
- cout<<"? ";
- }
- cout<<""; cout<<endl;
- }
- cout<<endl<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement