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

1/3 of 5/8 is what in the simplest form?
Why might the culture of the mountain communities remain less changed over time then the communities of the deserts,oases or coastal plains
Medieval manors were nearly self-sufficient. true or false
A jet travels 580 miles in 5 hours. At this rate how far could the jet fly in 8 hours? What is the rate of speed of the jet
What are two things the Wagner Act accomplished during the Great Depression?
What did Muslims bring to Ghana in the 10th century?
katy bought 5 packages of stickers with 25 stickers in each packages. she also bought 3 boxes of markers with 12 markers in each box.if she receives 8 stickers
About how many days does a human egg survive after leaving the ovaries? Select one of the options below as your answer: a. one day b. three days c. five days d
PLEASEHELP!!!!!! What is Long John Silver doing when he refers to Black Dog as a "son of a Dutchman"? A.describing Black Dog's background B.celebrating Hollan
Why did the colonies meet for the Albany Congress, Albany, NY? Select one: a. for the colonies to unite and defeat the Powhatan chief b. for the colonies to uni