Creating a Common-Pointed 2 Triangle in C++

Creating a Common-Pointed 2 Triangle in C++

Logic Used –> j=2*(n-i)+1 –> j=n-i+1 –> j=2*i-1 –> j=n-i+1

Creating a Reverse of White-spaced Triangle in C++

Creating a Reverse of White-spaced Triangle in C++

Logic Used –> j=2*(n-i)+1 –> j=i

Creating a White-spaced Triangle in C++

Creating a White-spaced Triangle in C++

Logic Used –> j=i-1 –> j=2*(n-i)+1

Creating a Simple-Reverse Triangle in C++

Creating a Simple-Reverse Triangle in C++

Logic Used –> j=i-1 –> j=2*(n-i)+1

Creating a Simple Triangle Pattern in C++

Creating a Simple Triangle Pattern in C++

Logic Used   Above, for –> j=2*i-1 & Lower, for –>  j=n-i

Tutorial to make Star Patterns

Tutorial to make Star Patterns

Swapping 2 numbers without 3rd variable in JAVA

Swapping 2 numbers without 3rd variable in JAVA

Description Here actually, what we are doing is just swapping(interchanging) the 2 numbers, stored in 2 different variables(say a & b). Please keep in mind, here we are not using…

Transpose of a Matrix – ARRAY in JAVA

Transpose of a Matrix – ARRAY in JAVA

Description First, what is an ARRAY? Actually, Array is a group of elements having similar data type (either int, char, float, etc.) with continuous memory allocation. Arrays are of 2 types – 1.)    Single-Dimensional (having only…

Printing desired Fibonacci Series in Java (2 Methods)

Printing desired Fibonacci Series in Java (2 Methods)

Program to print the word in newline whenever the “whitespace” is encountered in a given string in Java (2 Methods)

Program to print the word in newline whenever the “whitespace” is encountered in a given string in Java (2 Methods)

Description  


1 2 4 5 6 7