subject
Computers and Technology, 08.11.2019 04:31 Crxymia

Assume that month is an int variable whose value is 1 or 2 or 3 or 5 or 11 or 12. write an expression whose value is "jan" or "feb or "mar" or "apr" or "may" or "jun" or "jul" or "aug" or "sep" or "oct" or "nov" or "dec" based on the value of month. (so, if the value of month were 4 then the value of the expression would be "apr"
again, conditional operator so i need to : and ? .
(month==1)? "jan": (month==2)? "feb": (month==3)? "mar": (month==4)? "apr":
(month==5)? "may": (month==6)? "jun": (month==7)? "jul": (month==8)? "aug":
(month==9)? "sep": (month==10)? "oct": (month==11)? "nov": (month==12)? "dec":
isn't quite right for the compiler i am currently using.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
What does josh silverman name as the most important aspect of managing finances?
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
You know the right answer?
Assume that month is an int variable whose value is 1 or 2 or 3 or 5 or 11 or 12. write an expressi...
Questions
Questions on the website: 13722367