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

What new developments in retail sales occurred in the late nineteenth century
Complete the sentence with the correct form of the verb tener. Lisa (tener) __________ muchos amigos.
what power of 10 can you multiply by 0.02 by to get a product of 20
Correct order of (1/2)2,0.75,2/3
Quantities or measured properties that are capable of changing values are called
Which of the following is a symptom of depression?
The number of ways to listen to 4 different cds from selection of 15 cds
What role did maize play in shaping Native American societies
Which of the following correctly compares the benefits of two forms of renewable energy? a) Geothermal energy and natural gas are both clean energy sources.
Juan brought 4 Tshirts and leather jacket. The T shirts were all the same price, and the price of the leather jacket was 6 times the cost of one Tshirt. If the