# Tag Archives: C Basic Programs

C Basic Programs

Given a positive integer N, the task is to find the value of F2 + F4 + F6 +………+ F2n upto N terms where Fi… Read More
Given an integer, write a function that returns true if the given number is palindrome, else false. For example, 12321 is palindrome, but 1451 is… Read More
What is ‘Compound interest’? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on… Read More
Factorial of a non-negative integer is the multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which… Read More
Given two numbers  a and b as interval range, the task is to find the prime numbers in between this interval. Examples:  Input: a =… Read More
What is ‘Simple Interest’? Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily… Read More
Given a character, check if it is vowel or consonant. Vowels are ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’. All other characters (‘b’, ‘c’, ‘d’, ‘f’… Read More
Given a number n as input, we need to print its table.  Examples :  Input: 5 Output: 5 * 1 = 5 5 * 2… Read More
Given a quadratic equation in the form ax2 + bx + c, find roots of it.  Examples : Input  :  a = 1, b =… Read More
What is ‘Compound interest’? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on… Read More
Write a program to reverse the digits of an integer. Examples :   Input : num = 12345 Output: 54321 Input : num = 876 Output:… Read More
Given four types of variables, namely int, char, float and double, the task is to write a program in C to find the size of… Read More
Prerequisites: Program for Armstrong Numbers A positive integer of n digits is called Armstrong number of order n (order is the number of digits) if … Read More
Prerequisite: Program for Armstrong Numbers A positive integer of n digits is called Armstrong number of order n (order is the number of digits) if … Read More
Given a number (num)  we need to check whether it is a Neon Number ( i.e. a number where the sum of digits of the… Read More