adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
        int a = 20;
        int b = 10;
        int c = 15;
        int d = 5;
        int e;
        e = a + b * c / d;
        cout << e << endl ;
        return 0;
    }

a.

50

b.

60

c.

70

d.

90

Answer: (a).50

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?