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…

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

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  

Creating a White-Spaced Diamond Pattern in C++

Creating a White-Spaced Diamond Pattern in C++

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

Program for finding out PALINDROME of a string in c++

Program for finding out PALINDROME of a string in c++

Description In this program first and last characters of string is compared one by one moving towards centre. Here string is entered in the variable ‘st’ of type String by user. Now…


1 2 3 4