Least Common Multiple (LCM) of two numbers is the smallest number which can be divided by both numbers. or The smallest positive number that is a multiple of two or more numbers. Let's start with an Example ... List the multiples of each number, Least Common Multiple (LCM) of 15 and 20: The multiples of … Continue reading Java program to find LCM of given array

# Uncategorized

# Java program to find LCM of two numbers

Least Common Multiple (LCM) of two numbers is the smallest number which can be divided by both numbers. or The smallest positive number that is a multiple of two or more numbers. Let's start with an Example ... List the multiples of each number, Least Common Multiple (LCM) of 15 and 20: The multiples of … Continue reading Java program to find LCM of two numbers

# Earn free bit coin

<a href="http://www.freebiebitcoin.com">Earn free bitcoin</a> <a href="http://www.freebiebitcoin.com">Earn free bitcoin</a> https://www.coinbase.com/join/598b51131e65cd00a944d0c8

# Java Math Operators

Java provides a rich set of operators to use in manipulating variables. A value used on either side of an operator is called an operand. For example, in the expression below, the numbers 5 and 8 are operands of the plus operator: int a = 5 + 8; Java arithmetic operators: 1. + addition 2. … Continue reading Java Math Operators

# Java Comments

The purpose of including comments in your code is to explain what the code is doing. All characters that appear within a comment are ignored by the Java compiler.Java supports three type of comments single line, multi-line and documentation comments. 1. Single line comment A single-line comment starts with two forward slashes and continues until … Continue reading Java Comments

# C++ program to find factorial of a given number

A simple cpp program to find factorial of a given number using foor loop. Input n=5 output =120 Time Complexity is O(n) //CPP program to find factorial of a given number // using for loop #include using namespace std; int main(){ int n,fact=1,i; cout<<"Enter a number:"; cin>>n; for(i=1;i<=n;i++){ fact =fact … Continue reading C++ program to find factorial of a given number

# Polar Coordinates

Task You are given a complex z. Your task is to convert it to polar coordinates. Input Format A single line containing the complex number z. Output Format Output two lines: The first line should contain the value of r. The second line should contain the value of Φ. Sample Input 1+2j Sample Output 2.23606797749979 … Continue reading Polar Coordinates

# What will be the value of 1+1^0 ?

Any positive number (say 35) raised to the power 0 is always 1. Hence 1 raised to the power 0 will also be 1. And adding 1 to that will give 2. i.e. 1+1^0 : =1+ (1^0) =1+1 =2 A simple code to demonstrate it. public class Test { public static void main(String[] args) { … Continue reading What will be the value of 1+1^0 ?