Program to add two binary numbers in java (example)
Given two binary numbers in java We would like to find out sum of two binary numbers. Examples: add two […]
Given two binary numbers in java We would like to find out sum of two binary numbers. Examples: add two […]
Given a integer number, check given number is positive. negative or zero. If the input number is greater than zero
Given a integer number, find out the power of given number. Methods to calculate power of given number. Calculate power
Problem Statement ? Given Principal amount (P). Rate of interest (R). Time Period (T) Find out the simple interest in
Given a decimal number (base 10), convert decimal number to hexadecimal (base 16) using java. We will discuss various methods
Given a decimal number (base 10), convert decimal number to octal (base 8) using java. We will discuss various methods
Problem Statement ? Given a number or integer in java, we would like to calculate the sum of all digits.
Given a decimal number in java (base 10) Find out number of consecutive 1’s in a binary number. 1. Examples
Given a decimal number (base 10), convert decimal integer to binary number (base 2) using java. We will discuss various
Given a hexadecimal number, convert hexadecimal number to decimal number using java. We will discuss various methods to convert hexadecimal
Given a decimal number (base 10), convert decimal to hexadecimal number (base 16) using java. We will discuss various methods to
LCM (Least common multiple) of two integers is the least positive integer that is divisible by both a and b. e.g
Given two input numbers, swap numbers using temporary variable. e.g. Given two input numbers x = 10 & y =
Given an integer, check whether input number is prime or not. A prime number is a natural number greater than 1
Given a binary number, convert binary number to decimal number using java. We discuss various methods to convert binary number
The greatest common divisor (GCD) is the largest natural number that divides two numbers without leaving a remainder. e.g gcd ( 10,15) =
What is palindrome ? A palindrome is a word, number, phrase, or other sequence of characters which reads the same from
Program to swap two numbers / variable without temporary or third variable in java using XOR , addition / subtraction , multiplication / division methods
What are even & odd numbers ? Given a number in java, check whether number is even or odd The
What is factorial of number? Factorial of a non-negative integer n, denoted by n!. Factorial is the product of all
Given a input number in java. Reverse input number using iterative or non recursive algorithm. e.g. if input number is
What is Fibonacci series? Fibonacci number is obtained by adding two preceding numbers. Fibonacci series is collection of fibonacci numbers. e.g. fibonacci