SarthakKeshari / CPP-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
47 stars 132 forks source link

solved issue#409 #421

Closed diwakar1998 closed 2 years ago

diwakar1998 commented 2 years ago

Issue Id you have worked upon - issue #409

Briefly explain your program logic - Takes input from user and prints a butterfly pattern using 4 for loops. main loop-changes number and line inner loop: first-prints left side digits second-prints the space between digits third-prints right side digits the second loop does the opposite starting with max values

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

Screenshot (58)

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

[] I have mentioned the question as comment in my solution file.

[x] My code follows the guidelines of this project.

[x] I have performed a self-review of my own code.

[x] I have commented my code.

[x] My code gives the correct output.

[x] I confirm that I have not copied the code from anywhere. In case its found that I have copied even after successful merge then I can be banned from the repository and hacktoberfest.

[x] I affirm that I strictly follow contributing guidelines and code of conduct.