JOJ ACM 2155

来源:互联网 发布:进销存软件源码 编辑:程序博客网 时间:2024/06/06 22:17

Mr. Jojer has written an article, but now he wants to make a copy of it and check out how many characters he has used.

Input and Output

You will be given an article, you should output this article again and how many characters are there.

Sample Input

FerrAriS and Jojer are friends.

Sample Output

FerrAriS and Jojer are friends.32

Note: All the characters must be counted, even they can’t be displayed. And do not output extra characters.

code:

#include<stdio.h>int main(){char ch;int num=0;while(ch=getchar(),ch!=EOF){printf("%c",ch);num++;}printf("%d",num);return 0;}
原创粉丝点击