import java.io.*; /** * 注意每打一个数字就要打一个空格 */ public class Main { public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); public static BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out)); public static StreamTokenizer cin = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in))); public static PrintWriter cout = new PrintWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws Exception { cin.nextToken(); double d = cin.nval; for (int i = 0; i < 3; i++) { for (int j = 0; j <= i; j++) { cout.printf("%6.2f ", d); } cout.println(); } cout.flush(); } }
0.0分
0 人评分
点我有惊喜!你懂得!浏览:3880 |
C语言训练-计算1977!* (C语言代码)浏览:893 |
C语言程序设计教程(第三版)课后习题12.3 (C语言代码)浏览:823 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:659 |
简单的for循环浏览:1409 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:840 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:790 |
【亲和数】 (C语言代码)浏览:598 |
一元一次方程 (C语言代码)浏览:4066 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:810 |