C program to find a^b
Below is the code to find power of a number Output: Enter base:5Enter power:25^2 is 25
Below is the code to find power of a number Output: Enter base:5Enter power:25^2 is 25
Below is the code to reverse the elements in an array Output: Enter size of an array:5Enter elements in an… Read More »C program to reverse an array
Below is the code to print the factorial of alternate elements in an array Output: Enter how many numbers do… Read More »C program to print the factorial of alternate elements in an array
Below is the program to remove duplicate elements in an array. Output: Enter how many numbers do you want to… Read More »C program to remove duplicate elements in an array
Below is the program to print sum of the two least integers in an array Output: Enter how many numbers… Read More »C program to print sum of the least two numbers in an array
Suppose assume a equation ax^2+bx+c=0 if b^2-4ac=0 then the roots are real and equal if b^2-4ac<0 then the roots are… Read More »C program to find roots of a quadratic equation
Prime number is a number which is divisible by 1 and itself Output 1: Enter a number:66 is not a… Read More »C program to check whether a given number is prime or not
Below is the program to find the factorial of a given number Output: Enter a number:6Factorial of given number is… Read More »C program to find factorial of a given number
Below is the program to find power of a number. Example: 2 raised to the power 4 is 16 Output:… Read More »C program to find power of a number using recursion
The sum of their “proper” divisors equals “perfect numbers” (positive integers that divide a number evenly, not counting itself). Below… Read More »C program to print Perfect numbers within the given range