Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- main()
- {
- const int a=5, b=5;
- for (int i=0;i<a;i++)
- {
- if (i%2==0)
- {
- for (int i=0;i<b;i++)
- {
- if (i%2==0)
- cout << "* ";
- else
- cout <<"? ";
- }
- }
- else
- {
- for (int i=0;i<b;i++)
- {
- if (i%2==1)
- cout << "* ";
- else
- cout <<"? ";
- }
- }
- cout << endl << endl;
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement