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

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

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

## Convert Binary to Decimal in C++

## Convert Decimal to Binary in C++

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

## Program For Fibonacci Series in C++

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

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

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

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

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 …

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 …

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

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

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

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 Check Whether a Number is Palindrome or Not Read More »

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