Write R - program script for computing value of factorial 10 using a for loop.
Answers
Answered by
0
which question is this I.e. which lesson in which subject
Answered by
0
This program is in java,if u are doing in c++ or anything else the format will be same first u need to store 2 variables one for no of factors (nf) another for looping control (i)
I have only written the format of the for loop part of the program
Int i,nf=1;
For (i=1;i <=10;i++)
{
If (10%i==0)
No of factors=nf*i;
}
Print nf
Similar questions