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.
The entire pattern can be considered as a 2D array, where each row has @@ and whitespaces. There is a pattern in the number of whitespaces each row has at the beginning, middle and at the end which is dependent on the row number. In my implementation, I have established this relation and printing character string based on that.
Screenshots(Attach 2 screenshots of your own input and output) -
As per the issue requirement, I have hard coded the level = 7 to generate exact output required. This can be taken as user input as well in the variable level
Output screenshot:
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 -
[x] 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.
Issue Id you have worked upon -
338 CPP Program to print pattern of Letter 'V'
Briefly explain your program logic -
The entire pattern can be considered as a 2D array, where each row has @@ and whitespaces. There is a pattern in the number of whitespaces each row has at the beginning, middle and at the end which is dependent on the row number. In my implementation, I have established this relation and printing character string based on that.
Screenshots(Attach 2 screenshots of your own input and output) -
As per the issue requirement, I have hard coded the level = 7 to generate exact output required. This can be taken as user input as well in the variable level Output screenshot:
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 -
[x] 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.