In this program, we will find the multiplication of 1 to 7 numbers.
#include <stdio.h>
void main()
{
int i, mul=1;
for(i=1; i<=7; i++)
{
mul = mul * i;
}
printf("Multiplication of 1 to 7 numbers is: %d", mul);
getch();
}
Multiplication of 1 to 7 numbers is: 5040