C Program to Find the GCD and LCM of Two Integers

The post on C program calculates the GCD and LCM of two integer numbers. GCD(Greatest Common Divisor) or HCF: Largest Integer that can divide both the numbers without any remainder or with 0 as remainder. For example, the GCD or HCF of 36 and 48 is 12. LCM(Least Common Multiple): The LCM of two integers is the smallest … Read more

C Program to Generate Fibonacci Series

This is the tutorial on the Fibonacci series in C with an example. Before that, you should have knowledge of the following topic in C. What is Fibonacci Series? Fibonacci series is the series of numbers where the next number is achieved by the addition of the previous two numbers. The initial addition of two … Read more

Sum of digits of a Number in C

This tutorial is to find the sum of digits of a number using for loop and while loop in C. You need to have knowledge of the following topics in C. Explanation:To find the sum of the digits means to add all the digits present in the number. For example: consider a number 123, sum … Read more

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