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

Mark each statement if it is an advantage of Byzantium's location. Choose all answers that are correct. a. The bodies of water offered opportunities for easy tr
Can you Factor each Polynomial? This one stumps me. vp+12v+8p+96 I get it all the way to (vp+12v) (8p+96)
Which type of RNA brings the information in the genetic code from the nucleus to other parts of the cell?
Is 4000 pounds equal to 2 tons
What is the total salt content of seawater as measured in parts per thousand (ppt)? A. 350 ppt B. 3.5 ppt C. 35 ppt D. 3 ppt
When discussing a work of art, Speaker A talks about how the peice was passed down through four generations of family members, while Speaker B mentions the diff
Who was the only president to get a Pulitzer prize?
Who is Winston Churchill? Why would Americans trust what he has to say about the Soviet Union?
864 is 40% of what number
Hi these are due Friday plz help me with these!! example: If some1 has already answered like 1 2 and 3 then plz answer the remaining ones. And please only answe