## Replace all the 0’s with 1 in a given integer

Problem Statement: You are given an integer. Your task is to replace all the zeros in the integer with ones.

## Check whether a number is Perfect Number or not

Problem Statement: Perfect Number. Write a program to find whether a number is a perfect number or not. A perfect number

## Program to find Sum of GP Series

Problem Statement: Given a geometric Progression (G.P) sequence with some inputs as:- a, first term r, common ratio n, number

## Prime Numbers in a given range

Problem Statement: Given a and b, find prime numbers in a given range [a,b], (a and b are included here).

## Permutations in which N people can occupy R seats

Problem Statement: Find permutations in which n people can occupy r seats in a classroom. Examples: Example 1: Input: N

## Check if a number is a Strong Number or not

Problem Statement: Given an integer Print “YES” if it is a strong number else print “NO”. Note :  When the

## Factors of a Given Number

Problem Statement: Find all factors of a number or find all distinct divisors of a natural number. Examples: Example 1:

## Factorial of a Number : Iterative and Recursive

Problem Statement: Given a number X,  print its factorial. To obtain the factorial of a number, it has to be