ErSKS / Java

Java Training
http://khec.edu.np/
MIT License
16 stars 17 forks source link

Submit Pattern25 #34

Closed ErSKS closed 7 years ago

ErSKS commented 7 years ago

Given String s = "123456789" pattern25

kiir33 commented 7 years ago

package pattern26;

/*

jagdish4249 commented 7 years ago

package patternmore3;

import static java.lang.Integer.parseInt;

/*

}

capture

milan604 commented 7 years ago

package pattern25;

import java.util.Scanner;

/*

}

screenshot from 2017-08-11 15-00-13

karmi214 commented 7 years ago

/*

/*

} p25

Sudan15423 commented 7 years ago

/*

import java.util.Scanner;

/*

} pattern25

RakenShahi commented 7 years ago

/*

/*

OUTPUT 25

kajalmaharjan commented 7 years ago

/*

/*

} 25

syslin commented 7 years ago

/*

/*

SusanCB commented 7 years ago

/*

/*

25

luckydivya commented 7 years ago

public static void main(String[] args) { // TODO code application logic here String s = "123456789"; final int N = 5; for (int i = 0; i < N; i++) {

        for (int j = 0; j < N - i; j++) {
            System.out.print(" ");
        }
        for (int j = i; j <= 2 * i; j++) {
            System.out.print(s.charAt(j));
        }
        for (int j = 2 * i - 1; j >= i; j--) {
            System.out.print(s.charAt(j));
        }

        System.out.println("");
    }

}

pattern25

sajanbasnet75 commented 7 years ago

/*

/*

} capture

ghost commented 7 years ago

package day09pattern25;

/*

} capture

rivab commented 7 years ago

package day9pattern25;

import static java.lang.Integer.parseInt; import javax.swing.JOptionPane;

/*

sthaanu commented 7 years ago

/*

import java.util.Scanner;

/*

ghost commented 7 years ago

package patterntwentyfive;

/*

Rajjushrestha commented 7 years ago

public static void main(String[] args) {

    for (int i = 1; i <= 5; i++) {

        for (int j = 1; j <= 5 - i; j++) {

            System.out.print(" ");
        }

        for (int k = 1; k <= i; k++) {
            System.out.print(i + k - 1);
        }
        for (int j = i; j > 1; j--) {
            System.out.print(i + j - 2);
        }
        System.out.println("");

    }
}

25

rabina12 commented 7 years ago

public static void main(String[] args) { // TODO code application logic here for (int i = 1; i <= 5; i++) {

        for (int j = 1; j <= 5 - i; j++) {

            System.out.print(" ");
        }

        for (int k = 1; k <= i; k++) {
            System.out.print(i + k - 1);
        }
        for (int j = i; j > 1; j--) {
            System.out.print(i + j - 2);
        }
        System.out.println("");

    }
}

} p1

rituratnam commented 7 years ago

CODE: package pattern25;

/*

Roshanshrestha7 commented 7 years ago

public static void main(String[] args) { String s = "123456789"; final int N = 5; for (int i = 0; i < N; i++) {

        for (int j = 0; j < N - i; j++) {
            System.out.print(" ");
        }
        for (int j = i; j <= 2 * i; j++) {
            System.out.print(s.charAt(j));
        }
        for (int j = 2 * i - 1; j >= i; j--) {
            System.out.print(s.charAt(j));
        }

        System.out.println("");
    }
}

}

// TODO code application logic here }

} image

duwalshraddha commented 7 years ago

/*

/*