Creating a Right Pointer Pattern of Star in Java

Creating a Right Pointer Pattern of Star in Java

Logic Used –> n– (to make it odd) –> n=(n/2)+1 –> j=i –> j=n-i

Working of getch() function in C++

Working of getch() function in C++

Description The function getch() gets a character from console but does not echo(print) to the screen. getch() reads a single character directly from the keyboard, without echoing to the screen. For this functionality we can…

Creating a 2 in 4 Triangles Pattern in Java

Creating a 2 in 4 Triangles Pattern in Java

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

Fibonacci Series in C++ (2 Methods)

Fibonacci Series in C++ (2 Methods)

Description  First we must know what Fibonacci series is. 0 1 1 2 3 5 8 13 21………..   By definition, the first Fibonacci number is ‘0’ and second Fibonacci number is…

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…

Centered and Responsive Page using CSS

Centered and Responsive Page using CSS

  VIEW DEMO   DOWNLOAD SOURCE First of all Welcome to the very first tutorial of CSS (that’s what we say “CSS Tuts”). Here we are going to “Design a Custom Page”…

Creating a 2 in 4 Triangles Pattern in C++

Creating a 2 in 4 Triangles Pattern in C++

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

Transpose of a Matrix – ARRAY in C++

Transpose of a Matrix – ARRAY in C++

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…

Creating a Reverse Scalene Triangle Pattern in C++

Creating a Reverse Scalene Triangle Pattern in C++

Logic Used –> j=n-i –> j=n-i+1

Program for finding out PALINDROME of a string in Java(3 Methods)

Program for finding out PALINDROME of a string in Java(3 Methods)

Description