File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ int main(){
4747/* @author : Pranay Kothapalli @kotAPI
4848/**********************************************************/
4949void printPattern_11 (int input){
50- // Outer loop loops input number of times
50+
5151int mid;
5252// Check if the user input is even or odd, choose a valid mid point depending on the input
5353if (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).
5959mid = input/2 +1 ;
6060}
61-
61+ // Outer loop loops input number of times
6262for (int i=1 ;i<input;i++){
6363// if i hasn't reached the mid point of the pyramid
6464// execute this block
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ int main(){
4848/* @author : Pranay Kothapalli @kotAPI
4949/**********************************************************/
5050void printPattern_12 (int input){
51- // Outer loop loops input number of times
51+
5252int mid;
5353// Check if the user input is even or odd, choose a valid mid point depending on the input
5454if (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).
6060mid = input/2 +1 ;
6161}
62-
62+ // Outer loop loops input number of times
6363for (int i=1 ;i<input;i++){
6464// if i hasn't reached the mid point of the pyramid
6565// execute this block
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ int main(){
5050/* @author : Pranay Kothapalli @kotAPI
5151/**********************************************************/
5252void printPattern_13 (int input){
53- // Outer loop loops input number of times
53+
5454int mid;
5555// Check if the user input is even or odd, choose a valid mid point depending on the input
5656if (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).
6262mid = input/2 +1 ;
6363}
64-
64+ // Outer loop loops input number of times
6565for (int i=1 ;i<input;i++){
6666// if i hasn't reached the mid point of the pyramid
6767// execute this block
You can’t perform that action at this time.
0 commit comments