Posts

Microbiology

Image
Dyes or stains may be divided into two groups: basic and acidic. Basic dye : If the color portion of the dye resides in the   positive ion , as in the above case, it is called a   basic dye (examples: methylene blue, crystal violet, safranin). when using a basic dye , the positively charged color portion of the stain combines with the negatively charged bacterial cytoplasm (opposite charges attract) and the organism becomes directly stained   (see Fig. 1) . Acidic dye : If the color portion is in the   negatively charged ion , it is called an   acidic dye   (examples: nigrosin, congo red). An   acidic dye , due to its chemical nature, reacts differently. Since the color portion of the dye is on the negative ion, it will not readily combine with the negatively charged bacterial cytoplasm (like charges repel). Instead, it forms a   deposit around the organism , leaving the organism itself colorless   (see Fig. 1) . Since the...
Level-3, Semester-1 BIOCHEMISTRY: protein structure determination Enzyme Protein Structure Proteins

C program to calculate the Sum of a series like 1+2+3+4+.....+N

#include <stdio.h> int main () { int sum, n, num; scanf("%d",&num); sum=0; for ( n=1 ;  n<= num ;    n++) sum=sum+n; printf("Result is %d", sum); }

C program for making pyramid containing N rows

#include <stdio.h> int main() {     int i, space, rows, k=0;     printf("Enter the number of rows: ");     scanf("%d",&rows);     for(i=1; i<=rows; ++i, k=0)     {         for(space=1; space<=rows-i; ++space)         {             printf("  ");         }         while(k != 2*i-1)         {             printf("* ");             ++k;         }         printf("\n");     }         return 0; }

C program for finding Fibonacci number up to N terms

//Program to Generate Fibonacci //Sequence Up to a Certain Number #include <stdio.h> int main() {     int t1=0, t2=1, nextTerm = 0, n;     printf("Enter a positive integer: ");     scanf("%d",&n);     // displays the first two terms which is always 0 and 1     printf("Fibonacci Series: %d, %d, ", t1, t2);     nextTerm = t1+t2;     while(nextTerm < n)     {         printf("%d, ",nextTerm);         t1 = t2;         t2 = nextTerm;         nextTerm = t1+t2;     }         return 0; }

C program for finding factors

#include <stdio.h> int main() {     int number,i;     printf("Enter a positive integer: ");     scanf("%d",&number);     printf("Factors of %d are: ", number);     for(i=1; i <= number; ++i)     {         if (number%i == 0)         {             printf("%d ",i);         }     }     return 0; }