Binary search Program with Example:- A binary search locates an item in a sorted array by repeatedly dividing the search interval in half. Initially interval include the whole array. If the value of the search key is less than the item in the middle of the interval, narrow the interval to the lower half. Otherwise narrow it to the upper ...

Read More »## Java Program to find Anagrams Words

Anagrams Program in Java: Anagrams means different combination, the result of rearranging the letters of a word to produce new words or we can say the possible string we make by rearranging the letter of word. Anagrams of a word is to get all the permutation of a word. Here we have provided a simple anagram code in Java and there are ...

Read More »## Harshad Number Program in Java (Niven Numbers)

Java Program to check for Harshad Number: What is a Harshad Number? Harshad Number also called Niven Number is a number that is divisible by the sum of its digits. Example: Number 200 is a Harshad Number because sum of digits 2 and 0 and 0 is 2(2+0+0) and 200 is divisible by 2. Number 171 is a Harshad Number because ...

Read More »## Ugly Numbers Algorithm – C and Java Program

C Program / Algorithm for Ugly Numbers: What is an Ugly Number Series? Ugly Numbers are the ones whose prime factors are 2,3 or 5 Only. We have also given a Java Source code in Method #4 So Ugly Number Series is 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, and so on… The reason why 1 is added is because ...

Read More »## C Program to make a Calculator – Source Code

C Calculator Program Source Code : C program with full illustration in comments is given here for making a Calculator in C. You can make this Calculator program to perform any operations you want but we have made this only for following operations: Addition (a+b) Subtraction (a-b) Multiplication (a*b) Division (a/b) Modulus (a%b) Factorial (a!) Power (a^b) Remember you can add ...

Read More »## Online Free data storage Sites: Store Data on Cloud

For personal and private data storage people are now shifting to the cloud data storage sites. There are both paid and free versions of using data storage and you can get many options to go for the free version and also some cheap paid version for your data. Here are some online data storage Sites: #1 Dropbox This one is the ...

Read More »## Loan EMI Calculator Script and Widget

Loan EMI Calculator Javascript Code : Here is the EMI calculator for Loan when we have to calculate the Estimated Monthly Instalments (EMI) while taking loans here is the program how to make such calculator. Advantages: What all this EMI Calculator does? This is also a AJAX based JavaScript that calculates the results thereby without loading the page again. It provides you ...

Read More »## Convert Writer to String in Java

Here is the Java Program for Writer to String Conversion : If you want to convert writer to string java here is the example for StringWriter Stream that is to be imported from the package Java.io. Here we are using append function. OUTPUT Welcome to Getprogramcode.com

Read More »## C program for adding two numbers without using Arithmetic Operator

C program to add two numbers without using Arithmetic Operator: There are many ways to add two numbers or sum up two numbers without using a arithmetic Operator. The methods are listed below:

Read More »## C program to add two numbers using recursion method

C program to add two numbers using recursion method | Without using Arithmetic operator : This is a C program using recursion method for adding two numbers. Recursion method has always been difficult for many. So you can get the code here and understand on our own. Also Read: Swap two numbers without using third variable #include<stdio.h> int sum(int, int); ...

Read More »