0
What does this program prouduce?
#include <iostream> using namespace std; int main() { int xAxis = 4; int yAxis; while (yAxis<=1) { yAxis = 1; } while (yAxis<=4) { cout<< (yAxis%2? "[":"A]"); ++yAxis; } --xAxis; cout <<endl; }
2 Answers
0
Thanks.
#include <iostream> using namespace std; int main() { int xAxis = 4; int yAxis; while (yAxis<=1) { yAxis = 1; } while (yAxis<=4) { cout<< (yAxis%2? "[":"A]"); ++yAxis; } --xAxis; cout <<endl; }