C program for solving quadratic equationC program for solving quadratic equation

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"…

Read more »
07 Aug 2015

 c program to find Variance, Mean, Standard Deviation 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=…

Read more »
07 Aug 2015

C program to convert days into years,weeks and daysC 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 …

Read more »
07 Aug 2015

c program to find out perfect numberc 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…

Read more »
07 Aug 2015

c program to check given number is palindrome number or notc 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…

Read more »
07 Aug 2015

Check given number is armstrong number or notCheck 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)…

Read more »
07 Aug 2015

check given number is strong number or notcheck 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…

Read more »
07 Aug 2015

Check given number is prime number or notCheck 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){ …

Read more »
07 Aug 2015

c program to print pascal trianglec 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…

Read more »
07 Aug 2015

Biggest of three numberBiggest 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); …

Read more »
07 Aug 2015

upper triangular matrix 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…

Read more »
07 Aug 2015

transpose of a matrixtranspose 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…

Read more »
07 Aug 2015

Subtraction of two matrixSubtraction 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…

Read more »
07 Aug 2015

Strassen matrix multiplicationStrassen 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 …

Read more »
07 Aug 2015
 
Top