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  

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  

Program for taking Input & Output in Java

Program for taking Input & Output in Java

Description Input is any information that is needed by your program to complete its execution.  There are many forms that program input may take.  Some programs use graphical components like a…

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…

Program to Implement Linear Search in 1D array in C++

Program to Implement Linear Search in 1D array in C++

Description Linear Search is also known as sequential search. Here the array of integers are entered in the array ‘arr[]’. Variable ‘x’ is used to store the element to be…


1 2