This is a segment of program, when it executed with multiple values for n and s the program displays the value of f, choose which output of f values are wrong answers

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 9RQ
icon
Related questions
icon
Concept explainers
Question
This is a segment of program, when it executed with multiple values for n and s the program displays the value of f, choose which output of f values are wrong answers
cin>>x>>y;
if (x>1) &&(y<5)
{f=x+y*9;
else
f-x-y-11;
}
cout<<f;
Transcribed Image Text:cin>>x>>y; if (x>1) &&(y<5) {f=x+y*9; else f-x-y-11; } cout<<f;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT