C Program to Reverse a Number using Loops

In this tutorial, we will write a C program to reverse a number using loops. Before that, you may go through the following topics in C. To reverse an integer in C is achieved using loop and operators. For example, if the input number is 123 then the program should give 321 as a result. … Read more

C Program to Count the Number of Digits in an Integer

In this tutorial, you will learn how to count the number of Digits in an integer in C programming. You will learn various approaches possible to Count the Number of Digits. But before that, you need to have knowledge of the following topics in C programming. Explanation:The following programs simply take the user input and … Read more

C Program to Find Quadrant of a given Co-Ordinate

Questions:Write a C program to accept a coordinate point in an XY coordinate system and determine in which quadrant the coordinate point lies. A Cartesian coordinate system specifies each point uniquely in a plane by a pair of numerical coordinates.There are 4 quadrants in a cartesian coordinate system. If x, y values are 0,0 then … Read more

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 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