//c program to find the value of cosine series #include<stdio.h> #define pi 3.1416 void main() { int n,i; float x, …
sine series (sin(x)=x – x^3/3! +x^5/5!……..)
//c program to find the value of sine series #include<stdio.h> #define pi 3.1416 void main() { int n,i; float x, …
C Program to find factorial of an integer
//calculating factorial of number that is n!=n*(n-1)*(n-2)…..3*2*1 #include<stdio.h> void main() { int fact=1,n; printf(“enter the number”); scanf(“%d”,&n); while(n!=0) { fact=fact*n; …
C Program to Find the Area of a Circle
#include<stdio.h> void main() { float A,r; printf(“enter the radius of the circle “); scanf(“%f”,&r); A=3.14*r*r; printf(“\nthe area of the cirlce …
C Program to Dispaly 2-D Table
#include<stdio.h> void main() { int n,i,j; printf(“\n enter the number upto which multiplication is to be found\n”); scanf(“%d”,&n); for(j=1;j<=n;j++) { …
Program to Display 1-D Table
#include<stdio.h> void main() { int n,i; printf(“\n enter the number which multiplication is to be found\n”); scanf(“%d”,&n); for(i=1;i<=10;i++) { printf(“\t …
