Closed ErSKS closed 7 years ago
Pattern 2 package pattern2;
/*
@author m-lan */ public class Pattern2
{
/**
}
Output
/*
/*
@author Kishorr */ public class JavaApplication12 {
/**
}
package pattern2;
/*
@author jagdish */ public class Pattern2 {
/**
@param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here
for (int i = 5; i >= 1; i--) {
for (int j = 1; j <= i; j++) {
System.out.print("*");
}
System.out.println(""); } }
}
package forpattern1;
/*
@author Balkrsihna */ public class ForPattern1 {
/**
@param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here int n = 5; for (int i = 1; i <= n; i++) {
for (int j = n; j >= i; j--) {
System.out.print("*");
}
System.out.println();
} } }
/*
/*
@author mahesh */ public class Pattern {
/**
}
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5 - i; j++) {
System.out.print("*");
}
System.out.println(" ");
}
/*
To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. */ package assignment2; /*
@author LORDsajan */ public class Assignment2 {
/**
@Param args the command line arguments / public static void main(String[] args) { // pattern3 System.out.println("\nPattern3"); for (int i = 1; i <= 5; i++) { for (int j = 5; j >= i; j--) { System.out.print("*"); } System.out.println(" "); } } }
/*
/*
@author Anish */ public class Pattern3 {
/**
}
/*
/*
@author dell */ public class PatterFour {
public static void main(String[] args) { for (int i = 5; i >= 0; i--) { for (int j = 0; j < i; j++) { System.out.print(""); } for (int k = 0; k < i; k++) { System.out.print("*"); } System.out.println(); }
}
} output
package pattthree;
/*
@author User */ public class PattThree {
/**
//PATTERN 2 for (inti = 5; i> 0; i--) { for (int j = 0; j <i; j++) { System.out.printf("*"); } System.out.println(); }
System.out.println("--------------Pattern 2\n----------------------"); for (int i = 0; i < 5; i++) { for (int j = 0; j <= i; j++) { System.out.print("*"); } System.out.println(""); }
/*
/*
@author DELL */ public class Star3 {
/**
@param args the command line arguments / public static void main(String[] args) { // TODO code application logic here for (int i = 5; i > 0; i--) { for (int j = 0; j < i; j++) { System.out.printf("");
}
System.out.print("\n");
} }
}
OUTPUT
CODE: package pattern2;
/*
@author Lavalesh */ public class Pattern2 {
/**
@param args the command line arguments */ public static void main(String[] args) { for (int i = 1; i <= 5; i++) { for (int j = i; j >0 ; j--) {
System.out.printf("*");
}
System.out.println("");
}
}
} Output:
package starstar3;
/*
@author DELL */ public class StarStar3 {
/**
@param args the command line arguments / public static void main(String[] args) { // TODO code application logic here for (int i = 0; i < 5; i++) { for (int j = 0; j < 5-i; j++) { System.out.print("\t"); } System.out.println("");
} }
}
Code: /*
/*
@author NiiRosh */ public class Pattern2 {
/**
@param args the command line arguments / public static void main(String[] args) { // TODO code application logic here for (int i = 0; i <= 5; i++) { for (int j = 0; j < i; j++) { System.out.printf("");
}
System.out.println("");
} }
} Output:
public static void main(String[] args) { // TODO code application logic here System.out.println("Pattern 1\n"); for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { System.out.print("*"); } System.out.println(""); }
Code package pattern3;
/*
@author Lenovo */ public class Pattern3 {
/**
}
public static void main(String[] args) { for (int i = 5; i > 0; i--) { for (int j = i; j >0; j--) { System.out.print("*"); } System.out.print("\n"); }
}
/*
/*
@author Eev */ public class PatteN3 {
/**
@param args the command line arguments / public static void main(String[] args) { for (int i = 0; i < 5; i++) { for (int j = 0; j < 5 - i; j++) { System.out.print(""); } System.out.println();
} }
}
public class Ass2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
for (int i = 0; i < 6; i++) {
for (int j = 0; j < i; j++) {
System.out.print("*");
}
System.out.print("\n");
}
// TODO code application logic here }
}
/*
/*
@author dragon15423 */ public class Day3 {
/**
for (int i = 5; i > 0; i--) { for (int j = i; j > 0; j--) { System.out.print("*");
}
System.out.println();
}
/*
/*
@author sarumdr */ public class Pattern3 {
/**
}
} OUTPUT
/*
/*
@author sarumdr */ public class Pattern3 {
/**
}
} OUTPUT
code for pattern 2.
package pattern2;
/*
@author PC */ public class Pattern2 {
/**
@param args the command line arguments / public static void main(String[] args) { for(int i = 1; i <= 5; i++) { for (int j =i; j > 0; j--) { System.out.print("");
}
System.out.println("");
} }
} output
package pattern2;
/*
@author ragen */ public class Pattern2 {
/**
}
Output
*