Skip to content

Commit beebdd3

Browse files
committed
fix comment line issue
1 parent 7b0cdf7 commit beebdd3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Pattern Algorithms/11_PatternChallenge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int main(){
4747
/* @author : Pranay Kothapalli @kotAPI
4848
/**********************************************************/
4949
void printPattern_11(int input){
50-
// Outer loop loops input number of times
50+
5151
int mid;
5252
// Check if the user input is even or odd, choose a valid mid point depending on the input
5353
if(input%2==0){
@@ -58,7 +58,7 @@ void printPattern_11(int input){
5858
// Mid/2+1 if the input is odd. (if input is 9, mid is 5, 9/2+1 = 5).
5959
mid = input/2 +1;
6060
}
61-
61+
// Outer loop loops input number of times
6262
for(int i=1;i<input;i++){
6363
// if i hasn't reached the mid point of the pyramid
6464
// execute this block

Pattern Algorithms/12_PatternChallenge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int main(){
4848
/* @author : Pranay Kothapalli @kotAPI
4949
/**********************************************************/
5050
void printPattern_12(int input){
51-
// Outer loop loops input number of times
51+
5252
int mid;
5353
// Check if the user input is even or odd, choose a valid mid point depending on the input
5454
if(input%2==0){
@@ -59,7 +59,7 @@ void printPattern_12(int input){
5959
// Mid/2+1 if the input is odd. (if input is 9, mid is 5, 9/2+1 = 5).
6060
mid = input/2 +1;
6161
}
62-
62+
// Outer loop loops input number of times
6363
for(int i=1;i<input;i++){
6464
// if i hasn't reached the mid point of the pyramid
6565
// execute this block

Pattern Algorithms/13_PatternChallenge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int main(){
5050
/* @author : Pranay Kothapalli @kotAPI
5151
/**********************************************************/
5252
void printPattern_13(int input){
53-
// Outer loop loops input number of times
53+
5454
int mid;
5555
// Check if the user input is even or odd, choose a valid mid point depending on the input
5656
if(input%2==0){
@@ -61,7 +61,7 @@ void printPattern_13(int input){
6161
// Mid/2+1 if the input is odd. (if input is 9, mid is 5, 9/2+1 = 5).
6262
mid = input/2 +1;
6363
}
64-
64+
// Outer loop loops input number of times
6565
for(int i=1;i<input;i++){
6666
// if i hasn't reached the mid point of the pyramid
6767
// execute this block

0 commit comments

Comments
 (0)