checkerboard
This program takes an integer input n. Print out a checkerboard with n rows and n columns in a checkerboard pattern of stars; e.g. when n is 4:
* * 
 * *
* *
 * *
The top-left should always be a star.
25
 
1
#include <iostream>
2
using namespace std;
3
4
int main() {
5
   int n;
6
   cin >> n;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
   return 0;
25
}