What will the output of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What will the output of this code?

int main() { int i = 1; while(i <= 16) { textcolor(i); cout <<i; i++; } }

1st Dec 2021, 3:52 PM
Adam M. El-dodo
Adam M. El-dodo - avatar
2 Answers
+ 4
Why you do not try to check it on Sololearn Playground?
1st Dec 2021, 3:54 PM
JaScript
JaScript - avatar
+ 2
Hi ! Incomplet code... Where are headers ? 'textcolor' is non-standard. 'conio.h' maybe ? the code would like to display 16 lines with a number per line of the foreground color defined by i (but i don't use microsoft/borland librarys... 😁)
1st Dec 2021, 4:10 PM
Bernard Bordja