1
2
3
4
5
6
7
8
9
10
11
12
13
|
public class A01 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int A [] = new int []{ 245 , 570 , 320 };
double sum=A[ 0 ]* 2 +A[ 1 ]* 1 +A[ 2 ]* 1 ;
System.out.println( "消费总金额:" +sum* 0.8 );
}
} |
本文转自 Y幕徐 51CTO博客,原文链接:http://blog.51cto.com/765133133/1420128