herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
計算你的BMI
-
1. 利用遞迴input n算2^n 2. 用C算GCD(3333,456)
-
請用 C/C++/java寫一簡易程式
-
BMI (Body Mass Index)= 體重 (kg) / 身高 ^2(m 2 ) 在台灣,行政院衛生署乃根據其相關研究,於2002年4月公佈台灣成人肥胖標準: BMI<18.5 為過輕, 18.5≦BMI<24 為正常體重, 24≦BMI<27 為過重, BM...
-
用 C/C++算上學期加權平均
-
輸出 A A A A A A A A A A A A A A A
-
需要練習的Java程式:
-
計算你上學期加權平均
42 則留言:
import java.util.*;
public class a03 { public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
if(sum>200){
System.out.println(sum+">200");
}
else{
System.out.println(sum+"<200");
}
}
}
import java.util.Random;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200){
System.out.println("sum大於200"); }
else{
System.out.println("sum小於200");
}
}
}
130
sum小於200
import java.util.Random;public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); System.out.println("x="+x); System.out.println("y="+y); System.out.println("z="+z); int sum=x+y+z; System.out.println("sum="+sum); if (sum>200){ System.out.println(">200"); } else{ System.out.println("<200"); } }}
import java.util.Random;public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println("sum="+sum); if (sum>200){ System.out.println(">200"); } else{ System.out.println("<200"); } }}
import java.util.Random;
public class ex3 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
System.out.println("x="+x);
System.out.println("y="+y);
System.out.println("z="+z);
int sum=x+y+z;
System.out.println("sum="+sum);
if (sum>200){
System.out.println(">200"); }
else{
System.out.println("<200"); } }}
import java.util.*;public class EX03 { public static void main(String[] args) { Random rnd =new Random(); int x =rnd.nextInt(100); int y =rnd.nextInt(100); int z =rnd.nextInt(100); int sum= x+y+z; System.out.println("三數總和"+sum); if (sum>200){ System.out.println(sum+">200"); } else { System.out.println(sum+"<200"); }}}
三數總和264
264>200
import java.util.*; public class ex03 {
public static void main(String[] args) { Random rnd=new Random(); int x,y,z; x=rnd.nextInt(100); y=rnd.nextInt(100); z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200){ System.out.println("sum大於200"); }else{ System.out.println("sum小於200"); } } }
105
sum小於200
import java.util.*; public class ex3 { public static void main(String[] args) { Random rnd= new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=(x+y+z); System.out.println(sum); if (sum > 200){ System.out.println(">200"); } else { System.out.println("<200"); } } }
import java.util.Random;
public class ex3 {
public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if (sum>=200){ System.out.println(">200"); } else { System.out.println("<200"); } }}
113
<200
import java.util.*;public class XYZ88 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println("xyz總和"+sum); if (sum>=200){ System.out.println(sum+">=200"); } else { System.out.println(sum+"<=200"); } }}
xyz總和167
167<=200
import java.util.*; public class ex03 {
public static void main(String[] args) { Random rnd=new Random(); int x,y,z; x=rnd.nextInt(100); y=rnd.nextInt(100); z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200){ System.out.println("sum大於200"); }else{ System.out.println("sum小於200"); } } }
105
sum小於200
import java.util.*; public class exd03 { public static void main(String[] args) { Random rnd = new Random(); int x =rnd.nextInt(100); int y =rnd.nextInt(100); int z =rnd.nextInt(100); System.out.println(x); System.out.println(y); System.out.println(z); int sum = (x+y+z); System.out.println("總和"+sum); if (sum > 200) { System.out.println("大於200"); } else if (sum < 200){ System.out.println("小於200"); } } }
33
86
90
總和209
大於200
import java.util.*;
public class a03 { public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
if(sum>200){
System.out.println(sum+">200");
}
else{
System.out.println(sum+"<200");
}
}
}
import java.util.*;
public class exd03 {
public static void main(String[] args) {
Random rnd = new Random();
int x =rnd.nextInt(100);
int y =rnd.nextInt(100);
int z =rnd.nextInt(100);
int sum = (x+y+z);
System.out.println(sum);
if (sum > 200) {
System.out.println(">200");
}
else {
System.out.println("<200");
}
}
}
import java.util.*;
public class ex3 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
import java.util.Random;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200){
System.out.println("sum>200"); }
else{
System.out.println("sum<=200");
}
}
}
130
sum<=200
import java.util.Random;public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println("sum="+sum); if (sum>200){ System.out.println(">200"); } else{ System.out.println("<200"); } }}
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
141
sum<=200
import java.util.Random;public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println("sum="+sum); if (sum>200){ System.out.println(">200"); } else{ System.out.println("<200"); } }}
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x,y,z;
x=rnd.nextInt(100);
y=rnd.nextInt(100);
z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200){
System.out.println("sum>200");
}else{
System.out.println("sum<200");
}
}
}
195
sum<200
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
import java.util.*;
public class ex3 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
105
sum<=200
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x,y,z;
x=rnd.nextInt(100);
y=rnd.nextInt(100);
z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200){
System.out.println("sum>200");
}else{
System.out.println("sum<200");
} } }
111
sum<200
import java.util.*; public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200) System.out.println("sum>200"); else System.out.println("sum<=200"); } }
261
sum>200
import java.util.*; public class ex03 { public static void main(String[] args) { Random rnd=new Random(); int x,y,z; x=rnd.nextInt(100); y=rnd.nextInt(100); z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200){ System.out.println("sum大於200"); }else{ System.out.println("sum小於200"); } } }
80
sum小於200
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
import java.util.*;public class ex3 {
public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200) System.out.println("sum>200"); else System.out.println("sum<200");
}
}
189
sum<200
import java.util.*;
public class ex3 {
public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200) System.out.println("sum>200"); else System.out.println("sum<=200"); }
}
133 sum<=200
import java.util.*; public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200) System.out.println("sum>200"); else System.out.println("sum<=200"); } }
62
sum<=200
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
import java.util.*; public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if (sum>200) System.out.println("sum>200"); else System.out.println("sum<=200"); }
import java.util.Random;
public class ex3 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
System.out.println("x="+x);
System.out.println("y="+y);
System.out.println("z="+z);
int sum=x+y+z;
System.out.println("sum="+sum);
if (sum>200){
System.out.println(">200"); }
else{
System.out.println("<200"); } }}
import java.util.*; public class ex3 { public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println(sum); if(sum>200) System.out.println("sum>200"); else System.out.println("sum<=200"); } }
131
sum<=200
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if (sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
package ex01;
import java.util.Random;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if (sum>200){
System.out.println("sum>200");}
else
System.out.println("sum<=200");}
}
226
sum>200
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
package ex01;
import java.util.Random;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if (sum>200){
System.out.println("sum>200");}
else
System.out.println("sum<=200");}
}
import java.util.Random;
public class ex3 {
public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println("sum="+sum); if (sum>200){ System.out.println(">200"); } else{ System.out.println("<200"); } }}
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
import java.util.Random;
public class ex3 {
public static void main(String[] args) { Random rnd=new Random(); int x=rnd.nextInt(100); int y=rnd.nextInt(100); int z=rnd.nextInt(100); int sum=x+y+z; System.out.println("sum="+sum); if (sum>200){ System.out.println(">200"); } else{ System.out.println("<200"); } }}
B10233005
import java.util.*;
public class ex03 {public static void main(String[] args) {Random rnd=new Random();
int x=rnd.nextInt(100);int y=rnd.nextInt(100);int z=rnd.nextInt(100);
int sum=x+y+z;System.out.println(sum);if(sum>200)System.out.println("sum>200");
elseSystem.out.println("sum<=200");
}
}
import java.util.*;
public class ex03 {
public static void main(String[] args) {
Random rnd=new Random();
int x=rnd.nextInt(100);
int y=rnd.nextInt(100);
int z=rnd.nextInt(100);
int sum=x+y+z;
System.out.println(sum);
if(sum>200)
System.out.println("sum>200");
else
System.out.println("sum<=200");
}
}
張貼留言