Skip to content

A collection of coding patterns for beginners and learners

Notifications You must be signed in to change notification settings

PranilMeherkar/patterns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I have a dream,
I have a dream that, anyone in the world, who is stuck in patterns will get help from this repository. Dear people of world, please have a look at the patterns given below and write code to print that code after taking an input from user, Each folder in this repository, contains codes of corresponding patterns,

If the patterns are not visible
use that pencil logo on top right corner to see the patterns

##Please write code to whichever language you know and make them available for learners. ##Pleaase add more patterns if you like.

Following patterns should be printed when user input is "5":

Q1)  
   *****  
   ****  
   ***  
   **  
   *  


Q2)  
*****  
 ****  
  ***  
   **  
    *  


Q3)  
*  
**  
***  
****  
*****  
 

Q4)  
    *  
   **  
  ***  
 ****  
*****  


Q5)  
*********  
 *******  
  *****  
   ***  
    *  


Q6)  
    *  
   ***  
  *****  
 *******  
*********  
 

Q7)  
*  
**  
***  
****  
*****  
****  
***  
**  
*  


Q8)  
    *  
   **  
  ***  
 ****  
*****  
 ****  
  ***  
   **  
    *  


Q9)  
    *  
   ***  
  *****  
   ***  
    *  


Q10)  
*****  
*   *  
*   *  
*   *  
*****  


Q11)  
    1
   1 2
  1 2 3 
 1 2 3 4
1 2 3 4 5


Q12)  
1 2 3 4 5
 1 2 3 4
  1 2 3 
   1 2
    1


Q13)  
        1
      1 2 1
    1 2 3 2 1
  1 2 3 4 3 2 1
1 2 3 4 5 4 3 2 1


Q14)
***** *****
****   ****
***     ***
**       **
*         *

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


Q15)
**********
 ********
  ******
   ****
    **
    **
   ****
  ******
 ********
**********

About

A collection of coding patterns for beginners and learners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.8%
  • Java 25.4%
  • C++ 19.8%