Exercise 2 – Problem Description Develop and run a C program that performs the following Declare two arrays of character of size 50 called FatherName, SonName Ask the user to enter the father name read in the user's father name and store it in FatherName Ask the user to enter the son name read in the user's son name and store it in SonName Declare a two variable of integer called FatherBirth Year, SonBirth Year Ask the user to enter father's year of birth and store it in FatherBirth Year Ask the user to enter son's year of birth and store it in SonBirth Year Calculate the difference between the father birth year and son birth year in days and store it in a new integer variable DiffValue. Print the name of the father then “is older than " the name of son“ by” DiffValue "days”. Add your name, id, and email address as a comment at the beginning of the program Organize the output of you program similar to the following sample Sample output: . . Enter Father Name Samer Enter Father Age 34 Enter Son Name Omar Enter Son Age 6 Samer is older than Omar by 10220 days
没有找到相关结果