Computer Science, asked by mdqamer41, 13 hours ago

The following program segment calculates the factorial of a number. ex: factorial 6 is 6*5*4*3*2*1=720. Fill in the blank with appropriate java statement. class test { long factorial (int n) { long f = (1)_____; for (int i=1; (2)_____; i++) { f=(3)_________* i ; }return f; } System.out,println("factorial ="+(4)___________);}

1. *

1.0

0.0

1

2 *

i=n

i>=n

i<=n

3 *

i

f

n

4 *

f

i

fact

Answers

Answered by rammiguel23her
0

fact 3526

I=n 763

plsssss

Similar questions