write a program to calculate and display the factorials of all the numbers between 'm' and 'n' (where m<n, m>0, n>0).
[ Hint: factorials of 5 means: 5!=5*4*3*2*1]
Answers
Answered by
1
Answer:
int n = in.nextInt();
int f = 1;
for ( int i = 1 ; i<=n; i++)
{
f=f× i;
}
Similar questions