Comments (18)
package latepattern1;
/**
*
-
@author jagdish
*/
public class LatePattern1 {/**
-
@param args the command line arguments
*/
public static void main(String[] args) {
for (int i = 4; i >= 1; i--) {
int x = 1;
for (int j = 1; j <= 4; j++) {
if(i>j)
System.out.print(" ");
else{System.out.print(x++); } } for (int j = 3; j >= 1; j--) { if(i<=j){ System.out.print(x++); } } System.out.println("");
}
}
-
}
from java.
package pattern21;
/**
*
-
@author m-lan
*/
public class Pattern21 {/**
-
@param args the command line arguments
*/
public static void main(String[] args) {
int a = 1;
for (int i = 0; i < 4; i++) {
for (int j = 3; j >= i; j--) {
System.out.printf(" ");
}for (int j = 1; j <= (2 * i + 1); j++) { if (i == 0) { System.out.printf("%d", 1); } else { System.out.printf("%d", j); } a++; } 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_12;
/**
*
-
@author Anish
*/
public class Pattern_12 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int x = 1;
for (int i = 4; i > 0; i--) {
for (int j = 0; j < 5; j++) {
if (j < i) {
System.out.print(" ");
} else {
System.out.print(x);
x++;
}
}
for (int j = 3; j > i - 1; j--) {
System.out.print(x);
x++;
}
x = 1;
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 pattern12;
/**
*
-
@author KIRANN
*/
public class Pattern12 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int i, j, k;
final int N = 5;
System.out.println("Pattern 12\n----------------------");
for (i = 0; i < N; i++) {
k = 1;
for (j = N; j > i; j--) {
System.out.print(" ");
}
for (j = 0; j < 2 * i - 1; j++) {
System.out.print(k + " ");
k++;
}
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 q21;
/**
*
-
@author DELL
*/
public class Q21 {/**
-
@param args the command line arguments
*/
public static void main(String[] args) {byte b = 1;
for (int i = 3; i >= 0; i--) {
for (int k = 0; k < i; k++) {
System.out.printf(" ");
}
for (int j = 0; j < b; j++) {
System.out.print(j + 1);
}
b = (byte) (b + 2);
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 pattern12;
/**
*
-
@author NiiRosh
*/
public class Pattern12 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
for (int i = 0; i < 5; i++) {
int k = 1;
for (int j = 5; j > i; j--) {
System.out.print(" ");
}
for (int j = 0; j < 2 * i - 1; j++) {
System.out.print(k);
k++;
}
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 javaapplication58;
/**
*
-
@author Kishorr
*/
public class JavaApplication58 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int i, j, k;
for (i = 0; i < 5; i++) {
k = 1;
for (j = 5; j > i; j--) {
System.out.print(" ");
}
for (j = 0; j < 2 * i - 1; j++) {
System.out.print(k + " ");
k++;
}
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 paterrn;
/**
*
-
@author dell
*/
public class Paterrn {/**
-
@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 <= 5 - i; j++) {
System.out.print(" ");
}for (int k = 1; k <= 2 * i - 1; k++) { System.out.print(k); } System.out.println();
}
-
from java.
package patterntwenty3;
/**
*
-
@author User
*/
public class PatternTwenty3 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
int a = 1;
for (int i = 1; i <= 4; i++) {
for (int j = 4; j >= i; j--) {
System.out.print(" ");
}
for (int k = 1; k <= a; k++) {
System.out.print(k);
}
a += 2;
System.out.println(" ");
}
}
}
- @param args the command line arguments
from java.
package javaapplication54;
/**
*
-
@author Albina Praz
*/
public class JavaApplication54 {/**
-
@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 < 5 - i; j++) {
System.out.print(" ");
}for (int k = 1; k <= 2 * i - 1; k++) { System.out.print(k + ""); } 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 day3;
/**
*
-
@author dragon15423
*/
public class Day3 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
int a=0;
for (int i = 1; i <= 7; i++) {
for (int j = a++; j <= 2; j++) {
System.out.print(" ");
}
for (int j = 1; j <= i; j++) {
System.out.print(j);
}
i++;
System.out.println();
}
}
Output:
- @param args the command line arguments
from java.
for (int i = 1; i <= 4; i++) {
for (int j = 4 - i; j >= 1; j--) {
System.out.print(" ");
}
for (int k = 1; k <= (i * 2) - 1; k++) {
System.out.print(k);
}
System.out.println();
}
from java.
Code
package patternn12;
/**
*
-
@author Lenovo
*/
public class Patternn12 {/**
-
@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 < 5 - i; j++) {
System.out.print(" ");
}for (int k = 1; k <= 2 * i - 1; k++) { System.out.print(k); } System.out.println();
-
from java.
CODE:
package pattern12a;
/**
*
-
@author Lavalesh
*/
public class Pattern12a {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
int i, j, k;
final int N = 5;
for (i = 0; i < N; i++) {
k = 1;
for (j = N; j > i; j--) {
System.out.print(" ");
}
for (j = 0; j < 2 * i - 1; j++) {
System.out.print(k + " ");
k++;
}
System.out.println("");
}
}
}
Output:
- @param args the command line arguments
from java.
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
int k = 1;
for (int j = 5; j > i; j--) {
System.out.print(" ");
}
for (int j = 0; j < 2 * i - 1; j++) {
System.out.print(k);
k++;
}
System.out.println("");
}
}
from java.
*/
public class Patternn12 {
/**
@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 < 5 - i; j++) {
System.out.print(" ");
}
for (int k = 1; k <= 2 * i - 1; k++) {
System.out.print(k);
}
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 pat22;
/**
*
-
@author nissus
*/
public class Pat22 {/**
- @param args the command line arguments
*/
public static void main(String[] args) {
- @param args the command line arguments
byte b = 1;
for (int i = 3; i >= 0; i--) {
for (int k = 0; k < i; k++) {
System.out.printf(" ");
}
for (int j = 0; j < b; j++) {
System.out.print(j + 1);
}
b = (byte) (b + 2);
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 Eev
*/
public class PAtterN {/**
-
@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 < 5 - i; j++) {
System.out.print(" ");
}for (int k = 1; k <= 2 * i - 1; k++) { System.out.print(k); } System.out.println();
}
}
-
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.