Given a singly linked list. The task is to find the sum of all of the nodes of the given linked list which are divisible by a given number k. Examples: Input Read more →
Programs
1 postA string contains ‘0’ and ‘1’.You have to find out whether the string is dangerous or not. The string will be dangerous in the following two conditions. There are at least 7 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 →
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 →