标签:
1 package myapp; 2 3 public class tyc { 4 5 public static void main(String[] args) { 6 7 int a =12*3; 8 9 int c =a+4; 10 11 System.out.println((a==c)? "相等":"不相等"); 12 13 int z = c > a ? 12:30; 14 15 System.out .println("c>a ? 求其中最大的是;"+z); 16 17
不相等
c>a ? 求其中最大的是;12
1 package 李志; 2 3 public class test { 4 5 public static void main(String[] args) { 6 7 float lchang = 38.9f ; 8 9 float kkuai =27.2f; 10 11 float square =lchang * kkuai ; 12 System.out .println("square:"+square);
square :1058.0801
标签:
原文地址:http://www.cnblogs.com/as1234as/p/5098270.html