preethar2402 preethar2402
  • 19-01-2021
  • Computers and Technology
contestada

Write two scanf statement to get input values into birthMonth and birthYear. Then write an output statement with the month, a slash and the year.

Respuesta :

GrandNecro
GrandNecro GrandNecro
  • 19-01-2021

Answer:

unsigned birthMonth;

unsigned birthYear;

printf("Enter birth month:\t");

scanf("%u", &birthMonth);

printf("Enter birth year:\t");

scanf("%u", &birthYear);

printf("Date of Birth: %02u/%u\n", birthMonth, birthYear);

Answer Link

Otras preguntas

Which amendment to the constitution is most frequently cited to bolster arguments in favor of states’ rights?
how did organic compounds get there name, and how is the word related to is meaning?
The sum of 5 consecutive integers is 120. What is the third number in this sequence?
Math 9:The floor of conference hall can be covered completely with tiles. Its length is 36 ft longer than its width. The area of the floor is less than 2040 squ
Which organic macromolecule is used for long term energy storage in animals?
In sleep apnea, how often do victims stop breathing?
By 1400s did Spanish find a water route to Asia
Write 2.161616 as a mixed number
Teachers' initial impressions often influence the way they interact with their students so that the students begins to behave in the way they teachers expected
What is plagiarism? 1. intentionally not including citations 2. not having quotation marks 3. forgetting to include citations all of the above answers 2 and 3 a