Skip to content

Simple Core java code which prints 5 types of star patterns

Notifications You must be signed in to change notification settings

Shubham-Chandurkar/Star-Pattern-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Star-Pattern-Java

Please check the output_sample file to see the pattern output.

Simple Core java code which prints 5 different types of star patterns.

Problem 1: Write a function to draw a reverse isosceles triangle. Write a function draw1(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.

Problem 2: Write a function to draw a regular isosceles triangle. Write a function draw2(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.

Problem 3: Write a function to draw the following pattern. Write a function draw3(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.

Problem 4: Write a function to draw the following pattern. Write a function draw4(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.

Problem 5: Write a function to draw the following pattern. Write a function draw5(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.

Problem 6: Write a class which incorporates all above methods. Write a Java Class which incorporates above functions, and provides an option to select function and “n” as an input.

About

Simple Core java code which prints 5 types of star patterns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages