解题思路:
注意事项:
参考代码:
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
String b=""+a;
System.out.println(b.length());
char c[]=new char[b.length()];
for(int i=0;i<b.length();i++){
c[i]=b.charAt(i);
System.out.print(c[i]+" ");
}
System.out.println();
StringBuilder Builder=new StringBuilder();
System.out.print(Builder.append(b).reverse());
}
}
0.0分
3 人评分
剔除相关数 (C语言代码)浏览:1008 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:619 |
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)浏览:535 |
printf基础练习2 (C语言代码)浏览:644 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:667 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:504 |
【偶数求和】 (C语言代码)浏览:430 |
Tom数 (C语言代码)浏览:725 |
演讲大赛评分 (C语言代码)浏览:1629 |
输出九九乘法表 (C语言代码)浏览:1048 |