C program to print Cosine series
Below is the code to print Cosine series Output: Enter degrees:45Enter number of values:5-0.3081130.020156-0.0005270.000007-0.000000Sum of cosine series is 0.496523
Below is the code to print Cosine series Output: Enter degrees:45Enter number of values:5-0.3081130.020156-0.0005270.000007-0.000000Sum of cosine series is 0.496523
Below is the code to print sine series. First we have to convert the degrees into radians. Then we have… Read More »C program to print Sine series
Below is the program to generate electricity bill Output: Enter the name of consumer:vinnyEnter the number of units consumed:600Consumer name=vinnyUnits… Read More »C program to generate electricity bill
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