#include int main() { char a, b, c, d, e; scanf("%d%d%d%d%d", &a, &b, &c, &d, &e); printf("%d%d%d%d%d", a + 4, b + 4, c + 4, d + 4, e + 4); return 0; }
#include int main() { int i; char ch[5]; for (i = 0; i < 5; i++) { scanf("%c", &ch[i]); ch[i] += 4; } printf("%s", ch); return 0; }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String a=sc.nextLine(); char[] ch=new char[a.length()]; for(int i=0;i<a.length();i++) { System.out.print((char)(a.charAt(i)+4)); } } }
0.0分
2 人评分
C语言程序设计教程(第三版)课后习题6.10 (C语言代码)浏览:710 |
C语言训练-求素数问题 (C语言代码)浏览:728 |
A+B for Input-Output Practice (V) (C++代码)浏览:451 |
ASCII帮了大忙浏览:749 |
用筛法求之N内的素数。 (C语言代码)浏览:1261 |
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)浏览:790 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:536 |
最小公倍数 (C语言代码)浏览:1029 |
关于C语言变量位置的问题浏览:273 |
2^k进制数 (C语言描述,蓝桥杯)浏览:1420 |