date storer
#include <stdio.h>
typedef struct date{
int day;
int month;
int year;
}dt;
int main() {
// Write C code here
dt day1;
printf("enter the day : ");
scanf("%d",&day1.day);
printf("enter the month : ");
scanf("%d",&day1.month);
printf("enter the year : ");
scanf("%d",&day1.year);
printf("the date is : %d/%d/%d\n",day1.day,day1.month,day1.year);
return 0;
}
Comments
Post a Comment