# Find s=1 – 2 + 3 – 4 + 5 – 6 + 7 – 8 + 9 – 10. in C#

Output:- The value of s is: -5

# Calculate factorial of a number using C++ Recursive function

In this program, we see how to use a recursive function to calculate the factorial of a number using the C++ language. The following program has the recursive fact() function merely to return a number or call itself again. This program …

# Convert Decimal Number Array to Binary using C++

This program converts all the decimal numbers in an array to binary. To convert a decimal number into binary, we follow the following steps: Divide the decimal number by 2 and note the remainder Divide the Quotient repeatedly by 2 …

# C program to convert Octal number into Decimal number

Octal to Decimal: How to Convert Octal to decimal conversion is one of the most commonly taught problem solving exercises in computer basics. So is there an octal to decimal formula? Yes, an octal number can be converted to a decimal …

# Basic C Language Hello World Program

The most basic program for C language. Thats what this is. This is a simple C language “Hello World” program. The Program:

getch(): getch() stands for ‘get charater’. It tells the compiler to wait for the user to press …

# C++ Program to demonstrate Insertion Sort

Insertion sort is a simple sorting algorithm: a comparison sort in which the sorted array (or list) is built one entry at a time. How it works: In insertion sort,elements are entered into the array(or list) 1-by-1. When the first element is …

# C++ program to to convert Octal number into Decimal number

Octal to Decimal: How to Convert Octal to decimal conversion is one of the most commonly taught problem solving exercises in computer basics. So is there an octal to decimal formula? Yes, an octal number can be converted to a decimal …