Computer Science, asked by hussain4829, 1 year ago

Write output of the following C++ program
#include <iostream>
using namespace std;
int main ()
{
Int a, b, c;
a=b=1;
c=2;
if (a+b>c)
cout<<"\n RED";
else if(a + b <c)
cout<<"\n GREEN";
else
cout<<"\n BLUE";
return 0;
} ​

Answers

Answered by Psychologically
0

Answer:

Blue

Explanation:

In the program, the if and else if will get false so that the else will be printed.

Similar questions