C program : How to solve quadratic equation using C #include #include int main(){ float a,b,c; float d,root1,root2; printf("Enter a, b and c of quadratic equation: "); scanf("%f%f%f"…
c program to find Variance, Mean, Standard Deviation
C program - How to Find Variance, Mean and Standard Deviation using C #include #include #include #define MAXSIZE 10 void main() { float x[MAXSIZE]; int i, n; float avrg, var, SD, sum=0, sum1=…
C program to convert days into years,weeks and days
C program : How to convert days into years,weeks and days #include #define DAYSINWEEK 7 void main() { int ndays, year, week, days; printf("Enter the number of days\n"); scanf("%d",&ndays); year …
c program to find out perfect number
C program - How to find out the perfect number #include int main(){ int n,i=1,sum=0; printf("Enter a number: "); scanf("%d",&n); while(i if(n%i==0) sum=sum+i; i…
c program to check given number is palindrome number or not
C program : How to check given number is palindrome number or not #include int main(){ int num,r,sum=0,temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num…
Check given number is armstrong number or not
C program to check the given number is armstrong number or not #include int main(){ int num,r,sum=0,temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num!=0)…
check given number is strong number or not

C program - How to check given number is strong number or not #include int main(){ int num,i,f,r,sum=0,temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num){ i…
Check given number is prime number or not

C program - How to check given number is prime number or not #include int main(){ int num,i,count=0; printf("Enter a number: "); scanf("%d",&num); for(i=2;i if(num%i==0){ …
c program to print pascal triangle

C Program - How to Print pascal triangle #include long fact(int ); int main(){ int line,i,j; printf("Enter the no. of lines: "); scanf("%d",&line); for(i=0;i for(j=0;j…
Biggest of three number

C program to find biggest one out of three number #include int main() { int a, b, c; printf("Enter the value for a:\n"); scanf("%d", &a); printf("Enter the value for b:\n"); scanf("%d", &b); …
upper triangular matrix

C program for upper triangular matrix #include int main(){ int a[3][3],i,j; float determinant=0; printf("Enter the 9 elements of matrix: "); for(i=0;i for(j=0;j s…
transpose of a matrix

C program for transpose of a matrix #include int main(){ int a[10][10],b[10][10],i,j,k=0,m,n; printf("\nEnter the row and column of matrix"); scanf("%d %d",&m,&n); printf("\nEnter the…
Subtraction of two matrix

C program for subtraction of two matrices #include int main(){ int a[3][3],b[3][3],c[3][3],i,j; printf("Enter the First matrix->"); for(i=0;i for(j=0;j scanf("%d",&a[i…
Strassen matrix multiplication

C program - strassen matrix multiplication #include int main(){ int a[2][2],b[2][2],c[2][2],i,j; int m1,m2,m3,m4,m5,m6,m7; printf("Enter the 4 elements of first matrix: "); for(i=0;i …