What is the output of this program?

#include

Using namespace std;

int main()

{

int a = 10, i ;

if (a < 10) {

for (i = 0; i < 10; i++)

cout << i;

}

else {

cout << a;

}

return 0;

}

1
0123456789
2
123456789
3
0
4
error
5
10

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation