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

Need to simplify the equation
Who argued that human populations grow faster than the resources they depend on? a. Thomas Malthus b. Charles Lyell c. Jean Baptiste Lamarck d. Alfred Russel Wa
A child’s toy rake is held so that its output arm is 0.75 meters. If the mechanical advantage is 0.33, what is the input arm length?
What are two rights of a free press?
What is a main challenge faced by plants that live in a desert?
What is the mass of a pure platinum disk with a volume of 113 cm3? The density of platinum is 21.4 g/cm3. Give your answer in grams and kilograms.
what is wrong with this sentence why dosent you come over four homemade ice cream said mr choi
Which statement about cartilage and bone is correct? a. An endoskeleton made of bone rather than cartilage allows animals to grow larger and heavier. b. Cartila
What is a main challenge faced by plants that live in a desert?
what is a similarity between Earth's rotation and revolution???