Java Program To Print Number Patterns Programs

Posted on  by

Program to print the given Z Pattern Minimum number of Parentheses to be added to make it valid Program to find Nth term in the series 0, 0, 2, 1, 4, 2, 6, 3, 8. In Java, we can use for loop, while loop or do-while loops to print different number, alphabets or star patterns programs. The following programs demonstrate the same by creating triangle, rectangle or other patterns.

Hello! I have to print patterns using '*' and I am at a loss how to get these patterns printed!

I figured out the first one,
*
**
***
****
*****
******
*******
********
*********
**********

and now i have to do it upside down:
**********
*********
********
*******
******
*****
****
***
**
*

Java Program To Print Number Patterns Programs

and backwards:
**********
_*********
__********
___*******
____******
_____*****
______****
_______***
________**
_________*
and

_________*
________**
_______***
______****
_____*****
____******
___*******
__********
_*********
**********

this is the code i have for the first one:

and I figured if I just changed the numbers around and made i go from 10 to zero it would print out but it is not working. any help??? please!!

Thanks!

Edited by letters1417: n/a

Java Program To Print Number Patterns Programs Free

  • 6 Contributors
  • forum16 Replies
  • 962 Views
  • 4 Years Discussion Span
  • commentLatest Postby JamesCherrill

Recommended Answers

[QUOTE=cOrRuPtG3n3t!x;1747800]how is it not aligned? can you show the algorithm?[/QUOTE]
I thought of asking that too, but in this thread, his backwards is different from in the other thread :)

Jump to Post

All 16 Replies

Hello! I have to print patterns using '*' and I am at a lose how to get these patterns printed!

Check Out the Video Guide Download Naruto Shippuden Episodes from Torrent Websites There are many torrent sites on Internet. This website contains all dubbed and subbed episodes of Naruto, Naruto Shippuden, Boruto in nice quality. Should be one of the best sites for you to download HD Naruto Shippuden episodes or other anime in 720p & 1080p. And click download button to start downloading Naruto Shippuden episodes on Mac. Naruto central episodes download english dubbed free.

Tutorial

I figured out the first one,
*
**
***
****
*****
******
*******
********
*********
**********

and now i have to do it upside down:
**********
*********
********
*******
******
*****
****
***
**
*

Simple Java Program To Print Hello World

and backwards:
**********
*********
********
*******
******
*****
****
***
**
*
and

*
**
***
****
*****
******
*******
********
*********
**********

this is the code i have for the first one:

and I figured if I just changed the numbers around and made i go from 10 to zero it would print out but it is not working. any help??? please!!

Java Program To Print Prime Numbers

Thanks!

Number Pattern Programs In Java

wouldnt you have to swap the loops around too? or maybe the sign from +->- or both. Havent tested just thinking logically now

Java Program To Print Multiplication Table

Edited by DavidKroukamp: n/a