SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Pattern #428

Closed RAshid602 closed 2 years ago

RAshid602 commented 2 years ago

Issue Id you have worked upon -

387

Briefly explain your program logic -

//Logic //firstly we ascend to 7 starting from 1 //Since we have to keep 1 ad 13 at same line and so on //so we came up with logic that 13 is actually (2*7-1) //we also recognized that there is space between 12 and 14 so another loop is there to take care of it. //lastly we make sure that the printing number shouldnot exceed 16. for which we have to carryout nested if else ladder.

Screenshots(Attach 2 screenshots of your own input and output) -

pattern


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

SarthakKeshari commented 2 years ago

@RAshid602, Its confliting, kindly close this PR and create an new one.