Using only one variable called age and the increment and decrement operators, produce the output for your current and upcoming age next year. Sample output: Please enter your current age: My current age is: 14 My age next year will be: 15 My current age is: 14.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.1: Assignment Operations
Problem 9E: (Civil eng.) Write an assignment statement to determine the maximum bending moment, M, of a beam,...
icon
Related questions
Question

1.5.6 My Age (User Input)


Using only one variable called age and the increment and decrement operators, produce the output for your current and upcoming age next year.

Using only one variable called age and the increment and decrement
operators, produce the output for your current and upcoming age next
year.
Sample output:
Please enter your current age:
My current age is: 14
My age next year will be: 15
My current age is: 14.
Transcribed Image Text:Using only one variable called age and the increment and decrement operators, produce the output for your current and upcoming age next year. Sample output: Please enter your current age: My current age is: 14 My age next year will be: 15 My current age is: 14.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage