if (x > 2) y = x; cout <<" x if (y > 2) « y « « x « ", y = " « endl; int z=x + y: cout << "z = << z « endl; else int z- x+ y: cout << "z " « z « endl; else x- y: cout << " x = "« x « ", y = " if (y > 2) « y « endl; int z-x - y: cout << "z = z « endl; else

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
MTE BITP 1113 Programming Technique - Word
A ahmed garcad AG
File
Home
Insert
Draw
Design
Layout
Acrobat
O Tell me what you want to do
& Share
References
Mailings
Review
View
Help
E Align
i Group
HBreaks -
Indent
Spacing
D Line Numbers
E Left: 1.75 cm
Before: 0 pt
Margins Orientation Size Columns
Position Wrap
Send
Selection
bề Hyphenation
Bring
Text Forward - Backward
E Right: 0 cm
=
After: 0 pt
Pane
A Rotate
Page Setup
Paragraph
Arrange
------ --
if (x > 2)
{
y = x;
cout << " x = "<< x << ", y = " « y <« endl;
if (y > 2)
int z = x + y;
cout << "z = " << z « endl;
}
else
int z = x * y:
cout << "z = " << z << endl;
else
x = y;
cout <« " x = "<« x << ", y = " < y « endl;
if (y > 2)
int z = x - yi
cout << "z = " << z <« endl;
else
{
int z = x + y:
cout << "z = " << z << endl;
i.
What is the output if x=3 and y =2?
11.
What is the output if x =2 and y = 3 ?
Page 4 of 11
943 words
DE English (United States)
80%
4:11 AM
O Type here to search
IA
W
G 4») ENG
27°C
26
25/11/2021
(21
Transcribed Image Text:MTE BITP 1113 Programming Technique - Word A ahmed garcad AG File Home Insert Draw Design Layout Acrobat O Tell me what you want to do & Share References Mailings Review View Help E Align i Group HBreaks - Indent Spacing D Line Numbers E Left: 1.75 cm Before: 0 pt Margins Orientation Size Columns Position Wrap Send Selection bề Hyphenation Bring Text Forward - Backward E Right: 0 cm = After: 0 pt Pane A Rotate Page Setup Paragraph Arrange ------ -- if (x > 2) { y = x; cout << " x = "<< x << ", y = " « y <« endl; if (y > 2) int z = x + y; cout << "z = " << z « endl; } else int z = x * y: cout << "z = " << z << endl; else x = y; cout <« " x = "<« x << ", y = " < y « endl; if (y > 2) int z = x - yi cout << "z = " << z <« endl; else { int z = x + y: cout << "z = " << z << endl; i. What is the output if x=3 and y =2? 11. What is the output if x =2 and y = 3 ? Page 4 of 11 943 words DE English (United States) 80% 4:11 AM O Type here to search IA W G 4») ENG 27°C 26 25/11/2021 (21
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Program on Numbers
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.
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning