Hi!
I have another assignment regarding writing a program based on a given output.
Here's the Output given:
Output:
Enter your date of birth:
Day:
Month:
Year:
My birth date is on 31 August 1980.
So, here's my answer( Although it is wrong; with about 6 ERRORS in it):
#include <stdio.h>
main()
{
char date of birth[15];
printf("Enter your date of birth:");
scanf("%s", date of birth);
char Day[15]
printf("Day:");
scanf("%s", Day);
char Month[15]
printf("Month:");
scanf("%s", Month);
char Year[15]
printf("Year:");
scanf("%s", Year);
printf("\n\nMy birth date is on %s\n", date of birth);
return 0;
}
So, this is SO NOT CORRECT, right???
Can anyone tell me where did I go wrong in writing this program code? Coz I got 6 ERRORS in it!!! :(
And it's due tomorrow too! BUMMER.
Please! Please! Please! S.O.S
p/s: I'm waiting patiently for a reply thread here ASAP. Thanks in advance.