Comments (27)
Pattern 2
package pattern2;
/**
*
- @author m-lan
*/
public class Pattern2
{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
for (int j = 5; j > i; j--) {
System.out.printf("*");
}
System.out.println("");
}
}
}
from java.
/*
- 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 javaapplication12;
/**
*
-
@author Kishorr
*/
public class JavaApplication12 {/**
- @param args the command line arguments
/
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
for (int j = 5; j >= i; j--) {
System.out.print("");
}
System.out.println(" ");
}
}
}
- @param args the command line arguments
from java.
package pattern2;
/**
*
-
@author jagdish
*/
public class Pattern2 {/**
-
@param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic herefor (int i = 5; i >= 1; i--) {
for (int j = 1; j <= i; j++) { System.out.print("*"); }
System.out.println("");
}
}
-
}
from java.
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();
-
from java.
/*
- 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 pattern;
/**
*
-
@author mahesh
*/
public class Pattern {/**
- @param args the command line arguments
/
public static void main(String[] args) {
// TODO code application logic here
//1
for (int i = 0; i < 5; i++) {
for (int j = 5; j > i; j--) {
System.out.print("");
}
System.out.println(" ");
}
System.out.println();
}
- @param args the command line arguments
from java.
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(" ");
}
from java.
/*
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(" ");
}
}
}
from java.
/*
- 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 pattern3;
/**
*
-
@author Anish
*/
public class Pattern3 {/**
- @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.println("");
}
}
- @param args the command line arguments
from java.
/*
- 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 patterntwo;
/**
*
-
@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();
}}
from java.
package pattthree;
/**
*
-
@author User
*/
public class PattThree {/**
- @param args the command line arguments
/
public static void main(String[] args) {
for (int i = 1; i <= 5; i++) {
for (int j = 5; j >= i; j--) {
System.out.print("");
}
System.out.println(" ");
}
}
Output:
- @param args the command line arguments
from java.
//PATTERN 2
for (inti = 5; i> 0; i--) {
for (int j = 0; j <i; j++) {
System.out.printf("*");
}
System.out.println();
}
from java.
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("");
}
from java.
/*
- 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 star3;
/**
*
-
@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");
}
}
-
}
from java.
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("");
}
}
-
from java.
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("");}
}
-
from java.
Code:
/*
- 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 pattern2;
/**
*
-
@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("");
}
}
-
from java.
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("");
}
from java.
Code
package pattern3;
/**
*
-
@author Lenovo
*/
public class Pattern3 {/**
- @param args the command line arguments
/
public static void main(String[] args) {
// TODO code application logic here
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 6 - i; j++) {
System.out.print("");
}
System.out.println("");
}
}
- @param args the command line arguments
from java.
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");
}
from java.
/*
- 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 patten3;
/**
*
-
@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();}
}
-
}
from java.
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
}
}
from java.
/*
- 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 day3;
/**
*
-
@author dragon15423
*/
public class Day3 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
for (int i = 1; i <= 5; i++) {
for (int j = i; j <= 5; j++) {
System.out.print(" * ");
}
System.out.println();
}
Output:
- @param args the command line arguments
from java.
for (int i = 5; i > 0; i--) {
for (int j = i; j > 0; j--) {
System.out.print("*");
}
System.out.println();
}
from java.
/*
- 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 pattern3;
/**
*
-
@author sarumdr
*/
public class Pattern3 {/**
- @param args the co0mmand 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.printf("\n");
}
}
- @param args the co0mmand line arguments
}
OUTPUT
from java.
/*
- 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 pattern3;
/**
*
-
@author sarumdr
*/
public class Pattern3 {/**
- @param args the co0mmand 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.printf("\n");
}
}
- @param args the co0mmand line arguments
}
OUTPUT
from java.
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
from java.
package pattern2;
/**
*
-
@author ragen
*/
public class Pattern2 {/**
- @param args the command line arguments
/
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
for (int j = 5; j > i; j--) {
System.out.printf("");
}
System.out.println("");
}
}
- @param args the command line arguments
}
Output
**
*
from java.
Related Issues (20)
- Initial Design - CGPA Calculator HOT 1
- Initial Design - Blood Bank HOT 1
- Initial Design - CMS HOT 1
- Initial Design - RMS HOT 1
- Initial Design - SMS HOT 1
- Initial Design - FDC HOT 1
- Initial Design - HRS HOT 1
- Initial Design - DSMS HOT 1
- Some Screenshots - SRP HOT 1
- Some Screenshots - KLMS HOT 1
- Submit - Login UI HOT 6
- Build UI Better HOT 3
- Submit - Initial Screenshots, Source Code & Database HOT 4
- Submit - Concept Work of Your Project
- Design & Develop a Simple Calculator HOT 9
- Develop - PIN Breaker HOT 3
- Refresh JTable HOT 3
- Splash Screen - Loading
- Submit your Project Title HOT 26
- Project Submission Deadline: 31st Ashoj, 2017 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.