Factorial Program in C using Function

In this example, we will calculate the factorial of a number taking the value from the user in C. Before we begin, you should have the knowledge of the following in C Programming: Factorial of n number: Factorial of n number is the product of all the positive descending integers and is denoted by n!.Example: … Read more

C Program for Simultaneous Equations

In this tutorial, the program finds out the solutions to the simultaneous equations in two variables. The Linear equations are present in the following form: ax+by=c px+qy=r The co-efficient (a, b, c, p, q, r) are taken as an input from the user for the two equations. C Program to solve Simultaneous Linear Equations in … Read more

C Program to Find Roots of a Quadratic Equation

Quadratic equations are the polynomial equation having a degree 2. For a quadratic equation ax2+ bx + c = 0, (a≠0) and the discriminant (D = b2-4ac) decides the nature of roots. There are three possibilities of discriminant and those are: In order to understand the program, you need to have the knowledge of the … Read more

Implementation of Stack Using Array in C Program

Stack Program in C:This article covers stack implementation using an array in c programming. Here, we will see how to insert in the stack, remove and display the elements in the stack. The basic operation of stack are: PUSH(): This function is used to insert an element on top of the stack. POP(): This function … Read more