adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main ()
    {
        int n;
        for (n = 5; n > 0; n--)
        {
            cout << n;
            if (n == 3)
                break;
        }
        return 0;
    }

a.

543

b.

54

c.

5432

d.

53

Answer: (a).543

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?