請輸出下列樣式:
輸入:n=5
12345
1234
123
12
1
輸入: n=6
123456
12345
1234
123
12
1
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
python pandas對黃金、外匯匯率的爬蟲練習,並使用matplotlib.pyplot的函數plot, scatter做資料視覺化處理,採用numpy的統計函數,分析黃金價格波動與歐元走勢的關聯。
-
Python C C++ 2 pointer速解Leetcode 2337 Move Pieces to Obtain a String 多日Leetcode的問題都可用2-pointer法來解,今日2337. Move Pieces to Obtain a String也不例...
-
你會用C的算子sizeof?
30 則留言:
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);
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
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);
}
}
}
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);
}
}
}
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);
}}}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
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);
}
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);
}
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);
}
}
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); }
}
}
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); }
}
}
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);
}
}
}
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/
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);
}
}
}
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);
}
}
}
張貼留言