Given a number N, the task is to find Nth icosikaienneagonal number. An icosikaienneagonal number is class of figurate number. It has 29 – sided polygon called icosikaienneagon. The N-th icosikaienneagonal number Read more →
C Programs
16 postsGiven an array of integers, A[] of size n with elements in range 1 to n may not consist of all the numbers from 1 to n. There are two players P1 Read more →
Given an array arr of size n, the task is to sort this array using minimum swaps. We are allowed to swap only adjacent elements. Examples: Input: arr[] = {1, 4, 3, Read more →
In this article, you will learn to check whether an alphabet entered by the user is a vowel or a consonant. English alphabets a, e, i, o and u both lowercase and Read more →
In this article, you will learn to find the roots of a quadratic equation in C programming. Quadratic Equation : In elementary algebra a quadratic equation is an equation in the form Read more →
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 →
In 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 →
In this article, you will learn to swap two numbers in C programming. Examples : Input : x = 10, y = 20; Output : x = 20, y = 10 Input Read more →