In this article, you will learn to generate the multiplication table of a number. Examples : Input : 2 Output : 2 * 1 = 2 2 * 2 = 4 2 Read more →
Integer
8 postsIn this article, you will learn to calculate Sum of First n Natural numbers. The positive numbers 1, 2, 3… are known as natural numbers. The sum of natural numbers up to Read more →
This program checks whether the input year is leap year or not. A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is Read more →
In this article, you will learn to find the quotient and remainder when an integer is divided by another integer. Examples : Input: A = 2, B = 7 Output: Quotient = Read more →
C Program for Sum of digits of a given number. Examples : Input : 123 Output : 6 Input : 1995 Output : 24 Algorithm : To get sum of each digits Read more →
In this article, you will learn to calculate the factorial of a number. Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example factorial Read more →
In this example, you will learn to reverse the given number using these two methods. Examples : Input : 123 Output : 321 Input : 1995 Output : 5991 Approach used : Read more →
C Program to check whether the given integer is positive or negative. Examples : Input: 50 Output: Number is Positive. Input: -25 Output: Number is Negative. Input: 0 Output: Number is Positive Read more →