# Loops

## Convert Decimal Number to Roman Numeral in C and C++

Here you will get program to convert decimal number to roman numeral in C and C++. How it Works? Divide the given number in the order 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 to find largest base value. Display the corresponding roman symbol of largest base value obtained by above …

## Perfect Number in C

Here you will get program for perfect number in C. Perfect number is a positive number which is equal to the sum of all its divisors excluding itself. For example: 28 is a perfect number as 1 + 2 + 4 + 7 + 14 = 28. 15 is not perfect number as 1 + …

## Strong Number in C

Here you will get program for strong number in C. What is Strong Number? A number in which the sum of factorial of individual digits is equal to the number is called strong number. For example, 145 is a strong number because 145=(!1)+(!4)+(!5)=1+24+120=145 The below C program will check whether a given number in strong …

## C/C++ Program to Remove Spaces From String

For example given string is “the crazy programmer”. Now we have to remove all the spaces present in the string.   Before: the crazy programmer After: thecrazyprogrammer Below I have shared a program that perform above task with simple approach. You can ask your queries in the comment section. C/C++ Program to Remove Spaces From …

## C/C++ Program for Fibonacci Series Using Recursion

Series 0, 1, 1, 2, 3, 5, 8, 13, 21 . . . . . . . is a Fibonacci series. In Fibonacci series, each term is the sum of the two preceding terms.   The C and C++ program for Fibonacci series using recursion is given below.   C Program #include<stdio.h> int fibonacci(int n) { if((n==1)||(n==0)) …

## C++ Program to Check Whether a Number is Unique Number or Not

A unique number is a number in which no digit is repeated. For example: 102452 is not a unique number as 2 is repeated twice while 2374 is a unique number. So in this article I am sharing the C++ program that check if a number is unique or not.   Also Read: C++ Program to …

## C++ Program to Print Heart Shape with Happy Valentine’s Day Message inside it

Today’s day is very special for all lovers. So I thought that I should share some programming stuff that show Valentine’s Day feeling. A C++ program is given below which prints heart shape with a Happy Valentine’s Day message inside it. If you want, you can change the message by changing the value of string message. I hope that …

## Program for Fibonacci Series in Java

Here you will get program for fibonacci series in Java. It is a series in which next term is obtained by adding previous two terms. A fibonacci series will look like 0 1 1 2 3 5 8 13 21 34 . . . . Program for Fibonacci Series in Java package com; import java.util.Scanner; class …