In the following program we are checking whether the input integer number is positive or negative. If the input number is greater than zero then… [Read More]
C program to calculate and print the value of nPr
In the following program we are calculating the value of nPr based on the given values of n and r. nPr can also be represented… [Read More]
C program to calculate and print the value of nCr
In the following program we are calculating and displaying the value of nCr. nCr can also be represented as C(n,r) The formula is: C(n,r) =… [Read More]
C Program to find largest element of an Array
In the following program we are initializing a variable (max_element) with the first element of given array and then we are comparing that variable with… [Read More]
C Program to display Fibonacci series
In this tutorial, we will learn two following ways to display Fibonacci series in C programming language: 1) Using For loop 2) Using recursion Fibonacci… [Read More]
C program to Reverse a String using recursion
Here we have defined a function reverse_string, this function calls itself recursively. #include <stdio.h> #include <string.h> void reverse_string(char*, int, int); int main() { //This array… [Read More]
C Program to find prime numbers in a given range
Upon execution of below program, the user would be asked to provide the from & to range and then the program would display all the… [Read More]
C Program to check Armstrong number
A number is called as Armstrong number if sum of cubes of digits of number is equal to the number itself. In the below C… [Read More]
C Program to find factorial of number using Recursion
This Program prompts user for entering any integer number, finds the factorial of input number and displays the output on screen. We will use a… [Read More]
C Program to reverse a given number using Recursive function
In this tutorial, you will learn how to write a C program to reverse a given number. We will see two ways to reverse a… [Read More]
C Program to find sum of array elements
In this tutorial, you will learn how to write a C program to find sum of array elements. We will see the following three programs… [Read More]
C Program to find greatest of three numbers
In this tutorial, you will learn how to write a C program to find greatest of three numbers. We will see three programs: In the… [Read More]
C Program to calculate Area of an Equilateral triangle
In this tutorial, you will learn how to write a C program to calculate area of An equilateral triangle. A triangle is called equilateral triangle… [Read More]
C Program to calculate Area and Circumference of Circle
In this tutorial, you will learn how to write a C program to calculate area and circumference of a circle. This program is pretty simple… [Read More]
- « Previous Page
- 1
- …
- 3
- 4
- 5