fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int day,month,year;
  5. printf("Enter the date (dd-mm-yyyy) format including -'s:\n");
  6. scanf("%d-%d-%d",&day,&month,&year);
  7. printf("The date you have entered is %d-%d-%d\n",day,month,year);
  8. return 0;
  9. }
Success #stdin #stdout 0s 2160KB
stdin
16 7 1996
stdout
Enter the date (dd-mm-yyyy) format including -'s:
The date you have entered is 16--1079763188--1218253235