Plz Help me to print in java
a
b a b
c b a b c
d c b a b c d
c b a b c
b a b
a
anumitadas
0
Newbie Poster
Recommended Answers
Jump to PostPlz Help me to print in java
a
b a b
c b a b c
d c b a b c d
c b a b c
b a b
apublic class Pattern { /** * @param args */ public static void main(String[] args) { …
Jump to Post…public class Pattern { /** * @param args */ public static void main(String[] args) { for(char i=97;i<=100;i++) { for(char j=i;j>96;j--) { System.out.print(j+"\t"); } for(char k=98;k<=i;k++) { System.out.print(k+"\t"); } System.out.println(); } for(char i=99;i>96;i--) { for(char j=i;j>96;j--) { System.out.print(j+"\t"); } for(char k=98;k<=i;k++) { System.out.print(k+"\t"); } System.out.println(); } } }
All 6 Replies
axeeffect2002
25
Light Poster
auhuman
-6
Newbie Poster
axeeffect2002
25
Light Poster
VernonDozier
2,218
Posting Expert
Featured Poster
anumitadas
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.