請完成一簡易java程式,當中至少含有迴圈或條件敘述。
Eclipse設定請參考
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
你會用C的算子sizeof?
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
-
Python CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
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();
}
}
}
張貼留言