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<

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 20PE
icon
Related questions
Question
Untitled Section
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;
}
x=7, y=, 2; f=25 1
x=-31 , y=2,f=-44
x= - 2, y= 9, f= -22
x=0, y=-1 , f= -10
x=2, y=4 ,f=54
صفحة 5 من 1 1
Transcribed Image Text:Untitled Section 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; } x=7, y=, 2; f=25 1 x=-31 , y=2,f=-44 x= - 2, y= 9, f= -22 x=0, y=-1 , f= -10 x=2, y=4 ,f=54 صفحة 5 من 1 1
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage