請完成一簡易java程式,當中至少含有迴圈或條件敘述。
Eclipse設定請參考
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...
-
33, 45, 87, 99, 27 算平均
-
需要練習的Java程式:
-
一、 試利用switch case由程式中直接輸入一個1~7 之間的整數day,代表星期一到星期日。若day 的值是1,則印出 "星期一",若day 的值是2,則印出 "星期二",若day 的值是7,則印出 "星期日",...
-
用 C/C++算上學期加權平均
34 則留言:
package hello;
import java.util.Random;
public class ex1 {
public static void main(String[] args) {
Random rnd=new Random();
int i=0;
for (i=1;i<5;i++){
int j=1;
for (j=1;j<i;j++)
System.out.print("$");
System.out.println();
}
}
}
package b10033116_01;
public class Ex05 {
public static void main(String[] args) {
int n, sum, d, a;
sum = 0;
a = 2;
d = 2;
n = 5;
for (int i = 1; i <= n; i++) {
sum = sum + a;
a = a + d;
}
System.out.print("sum=" + sum);
}
}
B10233178
package loop;
public class practice {
//1+2+3+...+100=?
public static void main(String[] args){
int sum=0;
for(int x=1;x<=100;x++){
sum+=x;
}
System.out.println(sum);
}
}
package aa;
public class gg123 {
public static void main(String[] args) {
System.out.println("你好。");
}
}
package hello;
public class hello123 {
public static void main(String[] args) {
System.out.println("你好。");
}
}
public class Hw1 {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("我是胖虎~我是孩子王~");
}
}
}
public class NewClass {
public static void main(String[] args){
for(int i=10 ; i>0 ; i-- ){
for(int j=10 ; j>i ; j-- ){
System.out.println("z");
}
for(int a=0 ; a<i ; a++ ) {
System.out.println("x");
}
}
public class XXX {
public static void main(String[] args){
int sum=0;
for(int x=1;x<=100000000;x++){
sum+=x;
}
System.out.print(sum);
}
}
public class day910 {
public static void main(String[] args) {
System.out.println("3,5,5,5,8,10 數字中排第三的是?");
int [] a = {3,5,5,5,8,10};
for(int i=0;i<a.length;i++);
int Arr = a[3];
System.out.println("排第三個的是:"+Arr);
}
}
public class hello {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("你好");
}
}
}
public class ONE {
public static void main(String[] args) {
for (int i = 0; i < 4; i++) {
System.out.println("啾啾");
}
}
}
public class OE {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("程式");
}
}
}
package hello910;
public class Ex1{
public static void main (String[] args){
int i=0;
do{
i++;
System.out.println("*");
} while (i<10);
}
}
package hello;
public class kk123 {
public static void main(String[] args) {
System.out.println("哆啦A夢");
}
}
package hello;
public class SS {
public static void main(String[] args) {
System.out.println("小美");
}
}
public class dfg {
public static void main(String[] args) {
for (int i = 0; i < 4; i++) {
System.out.println("哈哈哈哈");
}
}
}
public class ex1 {
public static void main(String[] args) {
int i=0,j=0;
for(i=1;i<=5;i++){
for(j=1;j<=i;j++)
System.out.print("A");
System.out.println();
}
}
}
public class NewClass {
public static void main(String[] args){
for(int i=10 ; i>0 ; i-- ){
for(int j=10 ; j>i ; j-- ){
System.out.println("z");
}
for(int a=0 ; a<i ; a++ ) {
System.out.println("x");
}
}
public class NewClass {
public static void main(String[] args){
for(int i=10 ; i>0 ; i-- ){
for(int j=10 ; j>i ; j-- ){
System.out.println("z");
}
for(int a=0 ; a<i ; a++ ) {
System.out.println("x");
}
}
public class NewClass {
public static void main(String[] args){
for(int i=10 ; i>0 ; i-- ){
for(int j=10 ; j>i ; j-- ){
System.out.println("z");
}
for(int a=0 ; a<i ; a++ ) {
System.out.println("x");
}
}
package hellosha;
public class sha1{
public static void main (String[] args){
int i=0;
do{
i++;
System.out.println("安");
} while (i<8);
}
}
package java;
public class java123 {
public static void main(String[] args) {
System.out.println("HelloJava");
}
}
package hello;
public class hello123 {
public static void main(String[] args) {
System.out.println("I love Java");
}
}
package hello;
public class hello1 {
public static void main(String[] args) {
System.out.println("hello");
}
}
package hello;
import java.uti1.Random;
public class ex01 {
public static void main(String[] args) {
Random rnd=new Random();
int i=0;
for (i=1;i<5;i++){
int j=1;
for (j=1;j<i;j++)
System.out.print("$");
System.out.println();
}
}
}
package hello;
import java.util.Random;
public class ex2 {
public static void main(String[] args) {
Random rnd=new Random();
int i=0;
for (i=1;i<5;i++){
int j=1;
for (j=1;j<i;j++)
System.out.print("$");
System.out.println();
}
}
}
package hello;
import java.util.Random;
public class ex5 {
public static void main(String[] args) {
Random rnd=new Random();
int i=0;
for (i=1;i<5;i++){
int j=1;
for (j=1;j<i;j++)
System.out.print("$");
System.out.println();
}
}
}
package hello;
import java.util.Random;
public class ex3 {
public static void main(String[] args) {
Random rnd=new Random();
int i=0;
for (i=1;i<5;i++){
int j=1;
for (j=1;j<i;j++)
System.out.print("$");
System.out.println();
}
}
}
package ex;
public class ex1 {
public static void main(String[] args) {
for(int i=4;i>0;i--){
for(int j=0;j<i;j++){
System.out.print("A");
}
System.out.println();
}
}
}
public class hello {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.println("GooD");
}
}
}
public class homework01 {
public static void main(String[] args) {
for(int i=0;i<5;i++){
System.out.println("hello");
}
}
}
public class ex1 {
public static void main(String[] args) {
for (int i = 0; i < 4; i++) {
System.out.println("hello");
}
}
package java;
public class java123 {
public static void main(String[] args) {
System.out.println("HelloJava");
}
}
package hello;
import java.util.Random;
public class ex1 {
public static void main(String[] args) {
Random rnd=new Random();
int i=0;
for (i=1;i<5;i++){
int j=1;
for (j=1;j<i;j++)
System.out.print("$");
System.out.println();
}
}
}
張貼留言