Write a C program to print day/Month/Year of birthday using typedef.
Input :
16
11
1987
Output :
16/11/1987
#include <stdio.h>
int main()
{
typedef int u;
u day,month,year;
scanf("%d",&day);
scanf("%d",&month);
scanf("%d",&year);
printf("\n%d/%d/%d",day,month,year);
return 0;
}
Comments
Leave a comment