Professional Documents
Culture Documents
#include<stdio.h>
Output
void main () 02
{ 14
26
int i=0,j=2; 38
4 10
for(i = 0;i<5;i++,j=j+2)
{
printf("%d %d\n",i,j);
}
}
18 Dr. Poongundran Selvaprabhu, VIT 02/19/2024
What is factorial?
Factorial of a number n is product of all positive
integers less than or equal to n. It is denoted as n!.
For example factorial of 5 = 1 * 2 * 3 * 4 * 5 = 120