herrDeng網內搜尋

自訂搜尋

Ads

2015年10月2日 星期五

Ex3程式設計

請輸出下列樣式:



輸入:n=5

12345
1234
123
12
1

輸入: n=6

123456
12345
1234
123
12
1

30 則留言:

A10433022 提到...

public class EX1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
show(6);
show(5);
show(4);
show(3);
show(2);
show(1);
}
}

B10133007 提到...

import java.util.Scanner;

public class ex01 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}

}

A10433019 提到...

import java.util.Scanner;

public class ex01 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}

}

A10433011 提到...

import java.util.Scanner;

public class ex1 {

static void show (int n){
String X= "";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main (String[] args){
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i =n1; i>=0;i--){
show(i);
}

}
}

A10433029 提到...

import java.util.Scanner;
import java.util.*;
public class ex1 {
static void show(int n){
String X="";
for (int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=6; i>=0; i--){
show(i);
}

}

}

A10433016 提到...

import java.util.Scanner;

public class ex1 {
private static Scanner input;
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int j;
input =new Scanner(System.in);
System.out.println("請輸入數字");
j=input.nextInt();
for(int p=j;p>=0;p--)
show(p);
}
}

A10433013 提到...

import java.util.Scanner;

public class javashit {
static void shit(int n){
String x="";
for(int i=1;i<=n;i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("n=");
n=input.nextInt();
for(int i=n;i>=1; i--){
shit(i);
}
}
}

A10433008 提到...

import java.util.Scanner;

public class ex1 {
private static Scanner input;
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int j;
input = new Scanner(System.in);
System.out.println("輸入文字");
j=input.nextInt();
for(int p=j;p>=0;p--){
show(p);

}

}

}

a10433004 提到...

import java.util.*;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int x;
Scanner input=new Scanner(System.in);
System.out.print("i:");
x=input.nextInt();
for(int i=x; i>=0; i--){
show(i);
}}}

A10433006 提到...

import java.util.Scanner;

public class ex1 {
private static Scanner input;
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int j;
input = new Scanner(System.in);
System.out.println("輸入文字");
j=input.nextInt();
for(int p=j;p>0;p--){
show(p);
}

}

}

A10433001 提到...

import java.util.Scanner;
public class ex02 {
private static Scanner input;
static void show(int n){
String x="";
for(int i=1;i<=n;i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args){
int j;
input = new Scanner(System.in);
System.out.println("輸入數字");
j=input.nextInt();
for(int p=j;p>=0;p--){
show(p);
}
}
}

A10433014 提到...

import java.util.Scanner;

public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}
}

A10433043 提到...

import java.util.Scanner;

public class A10433043 {
static void show (int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0;i--){
show(i);
}
}
}

A10433043 提到...

import java.util.Scanner;

public class A10433043 {
static void show (int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0;i--){
show(i);
}
}
}

A10433039 提到...

import java.util.Scanner;

public class A10433043 {
static void show (int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0;i--){
show(i);
}
}
}

A10433036 提到...

import java.util.Scanner;

public class ap1002 {

static void show(int n) {
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main (String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0 ; i--)
show(i);
}
}

A10433007 提到...

import java.util.Scanner;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>0; i--){
show(i);
}
}

}

A10433010 提到...

import java.util.Scanner;

public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>=0; i--){
show(i);
}
}

}

A10433028 提到...

import java.util.Scanner;

public class baga {
static void FA(double n){
String X="";
for(int i=1;i<=n;i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
double a;
Scanner FA=new Scanner(System.in);
System.out.print("n=");
a= FA.nextDouble();
for(double i=a;i>=0;i--){
FA(i);
}
}
}

A10433038 提到...

public class ex911hello {
static void show (int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=")
n1=input.nextInt();
for(int i=n1; i>=0; i--) {
show(i);
}

A10433038 提到...

public class ex911hello {
static void show (int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=")
n1=input.nextInt();
for(int i=n1; i>=0; i--) {
show(i);
}

A10433021 提到...

public class ex911hello {
static void show (int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=")
n1=input.nextInt();
for(int i=n1; i>=0; i--) {
show(i);
}

A10433015 提到...

import java.util.Scanner;

public class EX1 {
static void aa(int n){
String x =" ";
for(int i =1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner z =new Scanner(System.in);
System.out.print("輸入:");
n=z.nextInt();
for(int i=n;i>=1;i--)
{aa(i);
}
}

A10433018 提到...

import java.util.*;
public class exc99 {
static void show(int n){
String X="";
for(int i=1;i<=n;i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int a;
Scanner input=new Scanner(System.in);
System.out.print("數字排列輸入");
a=input.nextInt();
for(int i=a;i>=0;i--){
show(i); }
}

}

a10433024 提到...

import java.util.*;
public class ex1 {
static void show(int n){
String X="";
for(int i=1;i<=n;i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}
public static void main(String[] args) {
int c;
Scanner input=new Scanner(System.in);
System.out.print("數字排列輸入");
c=input.nextInt();
for(int i=c;i>=0;i--){
show(i); }
}

}

A10433022 提到...

import java.util.Scanner;
public class EX1 {
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("輸入=");
n=input.nextInt();
for(int i=n;i>=1; i--){
show(i);
}
}
}

A10433020 提到...

import java.util.Scanner;
public class EX1 {
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("輸入=");
n=input.nextInt();
for(int i=n;i>=1; i--){
show(i);
}
}
}

匿名 提到...

try proxy http://www.avoidr.com/

A10433003 提到...

import java.util.Scanner;
public class ex1 {
static void show(int n){
String X="";
for(int i=1; i<=n; i++){
X=X+i;
}
X=X+"\n";
System.out.print(X);
}

public static void main(String[] args) {
int n1;
Scanner input=new Scanner(System.in);
System.out.print("i=");
n1=input.nextInt();
for(int i=n1; i>0; i--){
show(i);
}
}

}

B10133189 提到...

import java.util.Scanner;
public class EX1 {
static void show(int n){
String x="";
for(int i=1; i<=n; i++){
x=x+i;
}
x=x+"\n";
System.out.print(x);
}
public static void main(String[] args) {
int n;
Scanner input=new Scanner(System.in);
System.out.print("輸入=");
n=input.nextInt();
for(int i=n;i>=1; i--){
show(i);
}
}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章