Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package no;
- public class SpaceNeedle {
- public static void main(String[] args) {
- spaceNeedleTop(6);
- spaceNeedleRoof(6);
- }
- public static void spaceNeedleTop(int mina) {
- for(int i=1; i<=mina; i++) {
- for(int j=1; j<=mina*3; j++) {
- System.out.print(" ");
- }
- System.out.println("||");
- }
- }
- public static void spaceNeedleRoof(int mina) {
- for (int i=1; i<=mina; i++) {
- for (int j=; j>=1; j-=2) {
- //System.out.print("-");
- System.out.print(j);
- }
- //System.out.print("__/");
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement