其他分享
首页 > 其他分享> > 18.‘%‘字符的输入输出

18.‘%‘字符的输入输出

作者:互联网

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;
    char d,e;
    scanf("%d%c%d%c%d",&a,&d,&b,&e,&c);
    printf("%d%c%d%c%d",a,d,b,e,c);
    return 0;
}
9%17%2018
运行结果
9%17%2018
Process returned 0 (0x0)   execution time : 23.797 s
Press any key to continue.

标签:字符,输入输出,int,18,17%,d%,9%,c%,2018
来源: https://blog.csdn.net/m0_56703229/article/details/118898332