Convert number to word

Write a program to convert number to word For example:467Four hundred sixty seven 2321Two thousand three hundred twenty one Solution: Continue reading Convert number to word

Sieve of Eratosthenes

Get all prime number for the given number using Sieve of Eratosthenes algorithm For example: Input8 Output2, 3, 5, 7 Solution: Continue reading Sieve of Eratosthenes

Equilibrium index of an array

Equilibrium index is an index when the sum of elements at lower indexes is equal to the sum of elements at higher indexes. Write a program to find Equilibrium index of an array. For example: Solution: Continue reading Equilibrium index of an array

String Strange Pair

Two strings can be pair if meets blow criteria• The first string’s first letter = second string’s last letter.• The first string’s last letter = second string’s first letter.Write a program to check if two string can be pair For example Solution: Continue reading String Strange Pair

Compound Interest

Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. Write a program to Calculates Compound Interest. Solution: Continue reading Compound Interest