‘%’字符的输入输出

Description

输入三个用 “ % “ 分割的正整数 a b c 代表月,日,年,

要求按照输入样式原样输出。

Input

三个int范围内的正整数,中间用 “ %“ 分割。

Output

按题目描述原样输出。

Sample

Input 

9%17%2018

Output 

9%17%2018

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%%%d%%%d",&a,&b,&c);
    printf("%d%%%d%%%d",a,b,c);
}
温馨提示: 本文最后更新于2020-11-29,至今已有1245天,某些文章具有时效性,若有错误或已失效,请在下方留言
© 版权声明
THE END
喜欢就支持一下吧❀
点赞1投币 分享
评论 抢沙发

    请登录后查看评论内容