What will be the value of ans after the following code has been executed?
int ans = 10;
int x = 65;
int y = 55;
if (x > = y)
ans = x + y;
A) 10
B) 120
C) 100
D) No value, there is a syntax error.
+5
Answers (2)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What will be the value of ans after the following code has been executed? int ans = 10; int x = 65; int y = 55; if (x > = y) ans = x + y; ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Home » Computers and Technology » What will be the value of ans after the following code has been executed? int ans = 10; int x = 65; int y = 55; if (x > = y) ans = x + y; A) 10 B) 120 C) 100 D) No value, there is a syntax error.