Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- const int n = 12;
- int a[n][n];
- for (int i = 0; i<n; i++){
- for (int j = 0; j<n; j++){
- if (i != 10, j != 10){
- a[i][j] = 0;
- }
- a[10][10] = 1;
- }
- }
- for (int i = 0; i < n; i++){
- for (int j = 0; j < n; j++){
- if (a[i][j] == 0){
- cout << " ";
- }
- else {
- cout << "* ";
- }
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement