public class Triangle {
public static void main(String[] args) {
int i, j, t = 0;
int k;
for (i = 0; i <= 4; i++) {
for (j = t; j <= 4; j++) {
System.out.print(" ");
...
public class Reverse {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter Size of an Array :");
int n = sc.nextInt();
int...
public class LinearSearch {
public static void main(String[] args) {
int n;
Scanner sc = new Scanner(System.in);
System.out.print("Enter Size of an Array :");
n=sc.nextInt();
...