Given a number N, the task is to count all the rotations of the given number which are divisible by 10.Examples: Input: N = 10203 Output:… Read More

# Tag Archives: Number Divisibility

Given a positive integer N, the task is to maximize the integer N by rearranging the digits and check if the sum of the left… Read More

Given a number N, the task is to count the minimum number of digits to be removed from N to make it divisible by 4.… Read More

Given a numeric string S, the task is to find the minimum and the maximum number of digits that must be removed from S such… Read More

Given array arr[] consisting of N non-negative integers, and an integer K, the task is to check if GCD of all composite numbers in the… Read More

In this article, We will see how to write the program to find the given number is Even or Odd Using the Recursion Method. If… Read More

We can input a set of integer, and check which integers in this range, beginning with 1 are not divisible by 2 or 3, by… Read More

Given an integer N, the task is to reduce N to 1 by a minimum number of operations involving multiplication by 2 and division by… Read More

Given two integers L and R, the task is to print all the even and odd numbers from L to R using recursion. Examples: Input:… Read More

Given an integer N, the task is to check if the given number N is even or odd. If it is found to be even,… Read More

Given two numbers n and m. The task is to find the quotient and remainder of two numbers by dividing n by m. Examples: Input:… Read More