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…

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…

Use of cout pre-defined function in C++

Use of cout pre-defined function in C++

Description cout is a predefined function.   As you know C++ is more advanced than C, therefore in C++ there is already a predefined function known as cout which is used to display…

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…

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…


1 2 3 6 7