Answer to Question #209139 in C for Prasanna

Question #209139

Write a C program to print day/Month/Year of birthday using typedef.


Input :

16

11

1987


Output :

16/11/1987


1
Expert's answer
2021-06-21T06:43:37-0400
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS