Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- int main()
- {
- for (int size = (setlocale(LC_ALL, "Russian"), cout << "Введите размер: ", cin >> size, setlocale(LC_ALL, "C"), size), i = 0; i < size; i++)
- for (int j = 0; j < size; j++, cout << endl)
- {
- for (int k = 0; k < size; k++)
- {
- if ((i + k) % 2 == 0)
- for (int l = 0; l < size; l++) cout << " " << " ";
- else
- for (int l = 0; l < size; l++) cout << (char)223 << " ";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement