提交 a44786b2 编写于 作者: qq_39446688's avatar qq_39446688

Add new file

上级 e7f7dce3
#include <stdio.h>
#include <stdlib.h>
int main()
{
int mth;
int day;
int yar;
char a;
char b;
scanf("%d%c%d%c%d", &mth, &a, &day, &b, &yar);
if (mth >= 10 && day >= 10)
printf("You entered the date%d%d%d", yar, mth, day);
else if (mth >= 10 && day < 10)
printf("You entered the date%d%d0%d", yar, mth, day);
else if (mth < 10 && day < 10)
printf("You entered the date%d0%d0%d", yar, mth, day);
else if (mth < 10 && day >= 10)
printf("You entered the date%d0%d%d", yar, mth, day);
return 0;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册