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
0
Answer:
Blue
Explanation:
In the program, the if and else if will get false so that the else will be printed.
Similar questions
Math,
6 months ago
Chemistry,
6 months ago
Math,
6 months ago
Political Science,
1 year ago
Biology,
1 year ago
Biology,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago