?

Generation

generate functionMon, 20 Feb 2023

spinning cross

#include <iostream> using namespace std; int main() { for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { if (i == j) { cout << "x"; } else if (i + j == 3) { cout << "x"; } else { cout << "o"; } } cout << endl; } }

Questions about programming?Chat with your personal AI assistant