## Program to find LCM of 2 numbers without using GCD

Finding LCM using GCD is explained here but here the task is to find LCM without first calculating GCD. Examples: Input: 7, 5 Output: 35… Read More »

Finding LCM using GCD is explained here but here the task is to find LCM without first calculating GCD. Examples: Input: 7, 5 Output: 35… Read More »

Given two positive and distinct numbers, the task is to find the greatest of two given numbers without using any conditional statements(if…) and operators(?: in… Read More »

Given a number N and a digit D. Write a program to find how many times the digit D appears in the number N. Examples:… Read More »

Given a string, check if it is Colindrome or not. A string is said to be colindrome if it has consecutive 3 alphabets followed by… Read More »

Given co-ordinates of the center of a sphere (cx, cy, cz) and its radius r. Our task is to check whether a point (x, y,… Read More »

Given the value of n i.e, the number of rows, print the following pattern. Examples : Input : n = 4 Output : 1 5… Read More »

Given first two numbers of series, find n terms of series with these two numbers. The given series follows the same concept as Fibonacci series,… Read More »

Given length in centimeter, the task is to convert it into meter and kilometer. Examples : Input: Length in centimeter = 1000 Output: Length in… Read More »

Given a series 1, 17, 98, 354 …… Find the nth term of this series. The series basically represents sum of 4th power of first… Read More »

Given Center coordinate (c1, c2) and one coordinate (x1, y1) of the diameter of a circle, find the other end coordinate point (x2, y2) of… Read More »

Given the value of n, print the following pattern. Examples : Input : n = 4 Output : A1 AB12 ABC123 ABCD1234 Input : n… Read More »

We are given a number n, we need to find n-th centered Icosahedral number. Description: A centered icosahedral number is a centered figurate number that… Read More »

Given two points coordinates (x1, y1) and (x2, y2)on 2D plane. The task is to find the reflection of (x1, y1) at 180 degree rotation… Read More »

Given coordinates of two pivot points (x0, y0) & (x1, y1) in coordinates plane. Along with each pivot, two different magnets are tied with the… Read More »

Given a matrix of size n x n. The task is to check whether the given matrix is Centrosymmetric Matrix or not. In mathematics, a… Read More »