In mathematics, the factorial of a non-negative integern, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5! = 5 x 4 x 3 x 2 x 1 = 120
Chat with our AI personalities
Factorial is calculated by multiplying be each lower integer. eg factorial 4 (also written as 4!) is 4 x 3 x 2
1 is a factor of all positive numbers.
/*program to calculate factorial of a number*/ #include<stdio.h> #include<conio.h> void main() { long int n; int a=1; clrscr(); printf("enter the number="); scanf("%ld",&n); while(n>0) { a*=n; n--; } printf("the factorial is %ld",a); getch(); }
b
An empirical formula contains the constituent elements in the lowest possible mathematical whole-number ratio. In some cases, this is the legitimate formula for the compound, particularly if the substance you're dealing with is an ionic compound. Sometimes, however, the actual formula, known as the molecular formula, is a whole-number multiple of the empirical formula. The molecular formula for glucose is C6H12O6. However, an empirically-derived formula for glucose would be CH2O, which is the lowest possible ratio of carbon, hydrogen, and oxygen in that compound.