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

According to cell theory,which describes cells?
What did John Adams do to convince delegates to sign the Declaration of Independence? a. gave delegates offers of jobs in the new government b. worked constan
Do you capitalize both parts of a hyphenated word in a title?
A deli sells a sandwich bread for $6.40 per pound . Much do you have to pay for 24 ounces of the spread?
how did Hamilton and Jefferson differ in their interpretation of the constitution?
What role does advertising play in lives of youth?
a government controlled by a small group of people is called a city-state direct democracy oligarchy dictatorship
What was the most important role textiles played in the Industrial Revolution?
How could the journalist improve this article to be less biased? A. The article shows no bias. B. The journalist could talk about male gardeners being better
What does muscular strength measure? A.The length of your muscle fibers as they contract and relax over a period of time B.The amount of force that a muscle gro