
Program to calculate factorial of number n and find out permutation and combination using return type.
Problem Analysis: The problem is to calculate the factorial of a given number and find out permutation and combination using the factorial calculated. Code: Outputs: Enter a…

Program to calculate sum of first 50 natural numbers using recursive function.
Problem Analysis: The problem is to calculate the sum of first 50 natural numbers using recursive function. Code: Outputs: the sum of first 50 natural numbers is…

Program to add, subtract, multiply and divide two integers using user defined type function with return type.
Problem Analysis the problem is to write a program to add, subtract, multiply and divide two integers using user defined type function with return type. Codes: Output: enter two…

Program to find GCD(greatest common divisor or HCF) and LCM(least common multiple) of two numbers.
Problem Analysis: The problem is to input the two integers from the user and display their GCD and LCM.for this,the necessary parameters and header files are given below….

Program to input two integer numbers and display the sum of even numbers between these two input numbers.
Problem Analysis: The problem is to input the two integers from the user and displays the sum of even numbers between them.For this we need two input variables(a,b)…

Program to read the values for coefficients a,b and c of a quadratic equation ax²+bx+c=0.
Problem Analysis: The problem is to read the values of coefficient a,b,c of quadratic equation ax²+bx+c=0 and to find the equation of the roots. i.e. r1 =(-b + sqrt…

Program to check whether the entered year is leap year or not( a year is leap if it is divisible by 4 and divisible by 100 or 400)
Problem Analysis: The problem is to check whether the entered year is leap year or not ( a year is leap if it is divisible by 4 and…

Program to get the input of two or higher digit integer number and display in reverse order.
Problem Analysis: The problem is to get the input of two or higher digit integer number and display in reverse order. i.e. digit = num%10; rev= rev*10 +…

Program to check whether the input alphabet is vowel or not by using if else and switch statements.
Problem Analysis: The problem is to check whether the input alphabets is vowel or not by using if else and switch statements. Algorithm 1: (using if else)…

Program to print the size of char,float.double,and long double data types in C.
Problem Analysis: The problem is to print the size of char,float,double and long double data types in C. The output is to print the size of the data…