ErSKS / Java

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

Submit Pattern24 #33

Closed ErSKS closed 7 years ago

ErSKS commented 7 years ago

pattern24

jagdish4249 commented 7 years ago

package patternmore2;

/*

}

capture

maheshyakami commented 7 years ago

/*

import javax.swing.JOptionPane;

/*

}

screen shot 2017-08-11 at 8 49 36 am screen shot 2017-08-11 at 8 49 44 am
kiir33 commented 7 years ago

/*

/*

Output: capture24

milan604 commented 7 years ago

package pattern24;

import java.util.Scanner;

/*

} screenshot from 2017-08-11 10-18-48

RakenShahi commented 7 years ago

/*

/*

OUTPUT 24

karmi214 commented 7 years ago

/*

/*

} p24

sajanbasnet75 commented 7 years ago

/*

import java.util.Scanner;

/*

} 244

Sudan15423 commented 7 years ago

/*

import java.util.Scanner;

/*

} pattern24

ajay987 commented 7 years ago

/*

import java.util.Scanner;

/*

} sol24

kajalmaharjan commented 7 years ago

/*

import java.util.Scanner;

/*

} 24

raBbn commented 7 years ago

/*

/*

} capture

AmritDuwal commented 7 years ago

/*

/*

} upload 1

syslin commented 7 years ago

/*

/*

SusanCB commented 7 years ago

/*

/*

24

luckydivya commented 7 years ago

int i = 0, x = 2; do { x--; int j = 0; do {

            System.out.print(x + " ");
            j++;
            x++;

        } while (j < 2);
        System.out.println();
        i++;
    } while (i < 4);

}

} patttern24

ragenmah commented 7 years ago

package patt24;

import java.util.Scanner;

/*

Scanner input = new Scanner(System.in);

System.out.println("Enter the length of pattern: ");

int inp = input.nextInt();

int a = 1;

for (int i = 0; i < inp; i++) {

for (int j = 1; j <= 2; j++) {

 System.out.print(i + j + " ");

} System.out.println();

}

} } fullscreen capture 8122017 51600 pm

ghost commented 7 years ago

package day09pattern24;

/*

} capture

rivab commented 7 years ago

package day9pattern24;

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

/*

sthaanu commented 7 years ago

/*

import java.util.Scanner;

/*

} capture

ghost commented 7 years ago

package patterntwentyfour;

/*

sarumdr commented 7 years ago

/*

/*

// TODO code application logic here int i = 0, j = 1;

    do {
        do {
            System.out.print(i + j + "   ");
            j++;
        } while (j < 3);
        System.out.println(" ");
        i++;
        j = 1;

    } while (i <= 3);

}

}

OUTPUT image

Rajjushrestha commented 7 years ago

public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter value for Row and Column"); int a = input.nextInt(); int b = input.nextInt(); int i = 0; do { int j = 1; do { System.out.print(i + j + " "); j++; } while (j <= b); System.out.println(""); i++; } while (i < a); } } 24

rituratnam commented 7 years ago

CODE: package pattern24;

/*

Roshanshrestha7 commented 7 years ago

public class Day9Ass1 {

/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    System.out.println("enter n:");
    int n = in.nextInt();

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

        for (int j = 1; j < 3; j++) {
            System.out.printf("%d ", i + j - 1);
        }
        System.out.println("");
    }
}

}

// TODO code application logic here }

}

image

duwalshraddha commented 7 years ago

/*

import java.util.Scanner;

/*

} 2