Computers and Technology

Write two cin statements to get input values into birthmonth and birthyear. then write a statement to output the month, a dash, and the year. end with newline. the program will be tested with inputs 1 2000 and then with inputs 5 1950. ex: if the input is 1 2000, the output is: 1-2000 note: the input values come from user input, so be sure to use cin statements, as in cin > > birthmonth, to get those input values (and don't assign values directly, as in birthmonth = 1). 1 2 3 4 5 6 7 8 9 10 11 #include using namespace std; int main() { int birthmonth; int birthyear; /* your solution goes here */ return 0; }

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, mona92
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 23.06.2019 10:30, tommyaberman
Would a ps4 wired controller work on an xbox one
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, torresnoemi899
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, PlzNoToxicBan
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
Do you know the correct answer?
Write two cin statements to get input values into birthmonth and birthyear. then write a statement t...

Questions in other subjects:

Konu
Mathematics, 04.01.2021 20:10