# Neeraj Mishra

A crazy computer and programming lover. He spend most of his time in programming, blogging and helping other programming geeks.

## C++ Program to Print Series 1 -4 7 -10 . . . . -40

Here you will get C++ program to print series 1 -4 7 -10 . . . . -40.

## Convert Binary to Decimal in C++

Here you will learn how to convert binary to decimal in C++.   We can convert a binary number into decimal in following way. Multiply each digit from right to left by power of 2. Here the power of 2 will be the position of the digit starting from 0. Now add all the values …

## Convert Decimal to Binary in C++

Here you will get program to convert a number from decimal to binary in C++.   How to convert decimal number to binary? Divide the number by 2 and save the remainder somewhere. Divide the quotient with 2 again and save the remainder somewhere. Repeat the process until 1 is left as quotient. Now write …

## C++ Program to Print First 10 Prime Numbers

Here is the C++ program to print first 10 prime numbers. Output First Ten Prime Numbers Are 2 3 5 7 11 13 17 19 23 29

## Program For Fibonacci Series in C++

A series in which each number is the sum of preceding two numbers is called Fibonacci series. For example: 0 1 1 2 3 5 8 13 . . . . . Below is the program to find fibonacci series in C++.   Output How many numbers?5 Fibonacci series 0 1 1 2 3

## C++ Program to Find Sum of Square of n Natural Numbers

This C++ program will find the sum of square of n natural numbers. For example: n = 3 Then, Sum = 14   Output Enter any number: 50 Sum=42925

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

Here you will get C++ program to check a number is palindrome or not. A number is palindrome if it is equal to its reverse. For example 121 is palindrome because if we reverse the order of digits then the number so obtained is equal to original number.   Output Enter a number: 12321 Number …

## C++ Program to Find Divisors of a Number

Below is the C++ program to find all the divisors of a number.   A divisor is a number that divides another number completely. For example D is the divisor of N if N%D=0. Output Enter the number: 6 Divisors of 6 are 1 2 3 6