What does this program prouduce? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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; }

6th Jan 2020, 8:40 PM
Salihu Aminu Sa'id
Salihu Aminu Sa'id - avatar
1 Answer
0
Thanks.
21st Mar 2020, 2:09 PM
Salihu Aminu Sa'id
Salihu Aminu Sa'id - avatar