jamesy961 jamesy961
  • 23-02-2017
  • Computers and Technology
contestada

I'm stuck on this problem and how do I test the program with the arguments.

Im stuck on this problem and how do I test the program with the arguments class=

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 24-02-2017
The basic processing would be:

int factorial = 1;
while( N > 0 )
{
       factorial *= N;
       N--;
}

system.out.println( args[1] + "! is " + factorial );

It's kind of funny that the example run in your image has the wrong answer.
Answer Link

Otras preguntas

Which is a special clause in an insurance contract that stipulates additional coverage over and above the standard contract? a. deductible b. copayment c.
please solve the given problemFind the value of x and y If 5x-2y=05x+10y=100​
there are ten names in a hat. how many ways are there to draw three names for first, second and third prizes from the hat, assuming each person can win only one
pls help me i need 100%
What is the area of parallelogram ABCD? Will mark brainlyest!!!
3a-2b=50, 2a+3b=100 what does a equal and what does b equal?
What are usually the primary producers in an ocean grazing food web?.
Please answer quickly. Which themes are most heavily explored in Acts I through III of Julius Caesar? Ambition and loveBetrayal and honorDreams and failureWisdo
The term "liquidity trap" describes a macroeconomic scenario in which low interest rates cause firms to shift toward capital and away from labor, increasing une
HElppppppppppppppppppppppppppppppppppppppp