Suppose x and y are int variables and symbol is a char variable. Assume the following input data: 38 26 *67 33 24 $ 55 # 34 # & 63 85 After the following statement. cin >> x >> y: cin.ignore(100, \n'); cin >> symbol, What value (if any) is assigned to x, y, and symbol. Use' to indicate a blank.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter2: Basic Elements Of C++
Section: Chapter Questions
Problem 31SA
icon
Related questions
Question
Can anyone help me with this question. I need to know x,y and symbol
num2 18
symbol
Use two single quotes separated by a space to represent a space in the answers
QUESTION 2
Suppose x and y are int variables and symbol is a char variable. Assume the following input data:
38 26 * 67 33
24 $ 55 # 34
# & 63 85
After the following statement.
cin >> x >> y:
cin.ignore(100, '\n');
cin >> symbol;
What value (if any) is assigned to x, y, and symbol. Use
x is 38
to indicate a blank.
y is 26
symbol is 2
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
立
Transcribed Image Text:num2 18 symbol Use two single quotes separated by a space to represent a space in the answers QUESTION 2 Suppose x and y are int variables and symbol is a char variable. Assume the following input data: 38 26 * 67 33 24 $ 55 # 34 # & 63 85 After the following statement. cin >> x >> y: cin.ignore(100, '\n'); cin >> symbol; What value (if any) is assigned to x, y, and symbol. Use x is 38 to indicate a blank. y is 26 symbol is 2 Click Save and Submit to save and submit. Click Save All Answers to save all answers. 立
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
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