b) Write a MARIE program to calculate N! = 1 x 2 x 3 x 4 x … x N, where the user enters N.
Answers
Answered by
0
Answer:
int prod = 1;
for(int i=1;i<= N;i++)
{
prod = prod *i;
}
System.out.println(prod);
If it helps mark it as brainliest giving 5 stars.
Similar questions