Home
Downloads
Dvd
Games
Software
Office
Parent Category
Child Category 1
Sub Child Category 1
Sub Child Category 2
Sub Child Category 3
Child Category 2
Child Category 3
Child Category 4
Featured
Health
Childcare
Doctors
Let's Program
Home
Data Structure
Basics
Stack n Queue
Tree
Dynamic Programming
PINP, NPC, NPH
Hashing
Tree
Graph
C- Language
Basics
Theory
Programs
Basics
C++
Basics
OOPs
What is OOPs
Features
Advantages
Theory
Programs
Graphics in C++
JAVA
Basics
OOPS Concepts
Under Progress
Under Progress
Under Progress
Core Java
Advance Java 3
Programs
Help n Contact
Sunday, June 12, 2016
Home
»
Pattern Programs in Java
» Write a Java Program To Print following Pattern:
Write a Java Program To Print following Pattern:
Vikash
1:35:00 AM
No comments
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
Sol
:
public class PtrNum2
{
public static void main( String arg[]) {
for(int i=1;i<=5;i++) {
for(int j=5;j>=i;j--) {
System.out.print(j+" ");
}
System.out.println();
}
}
}
Output:
Share:
Email This
BlogThis!
Share to X
Share to Facebook
Older Post →
Home
0 comments:
Post a Comment
Search Programs
Categories
Pattern Programs in Java
Ordered List
Sample Text
Definition List
About Me
Vikash
View my complete profile
Blog Archive
▼
2016
(2)
▼
June
(2)
Write a Java Program To Print following Pattern:
Write a Java Program To Print following Pattern:
Subscribe To
Posts
Atom
Posts
Comments
Atom
Comments
Pages
Home
Popular
Tags
Blog Archives
Labels
Pattern Programs in Java
Blog Archive
▼
2016
(2)
▼
June
(2)
Write a Java Program To Print following Pattern:
Write a Java Program To Print following Pattern:
Recent Posts
Unordered List
Contact Us
Theme Support
0 comments:
Post a Comment