1- int a = 1, b = 0; %3D if (a < 0 && b> -1) {a = b = 23 ;} cout << x << " "

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 19PE
icon
Related questions
Question

What are the output from the codes  segment sbelow

1- int a = 1, b = 0;
%3D
if (a < 0 && b> -1)
{a = b = 23 ;}
cout << x << "
"<y< endl;
2- int x;
for (x = 1; x< 7; ++ x )
cout << x <<"\t“ << 11 – x<< endl;
Transcribed Image Text:1- int a = 1, b = 0; %3D if (a < 0 && b> -1) {a = b = 23 ;} cout << x << " "<y< endl; 2- int x; for (x = 1; x< 7; ++ x ) cout << x <<"\t“ << 11 – x<< endl;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binary 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.
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