参考代码:
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner ss=new Scanner(System.in); char c=ss.next().charAt(0); int a=ss.nextInt(); float b=ss.nextFloat(); double d=ss.nextDouble(); System.out.printf("%c ",c); System.out.printf("%4d ",a); System.out.printf("%.2f ",b); System.out.printf("%.12f",d); } }
0.0分
0 人评分
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:672 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:530 |
2^k进制数 (C语言描述,蓝桥杯)浏览:1452 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:515 |
Tom数 (C语言代码)浏览:589 |
勾股数 (C语言代码)浏览:823 |
C语言程序设计教程(第三版)课后习题12.1 (C语言代码)浏览:682 |
C语言程序设计教程(第三版)课后习题8.2 (C语言代码)浏览:1100 |
小O的数字 (C语言代码)浏览:1479 |
买不到的数目 (C语言代码)浏览:3120 |