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=
Relax

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

please help thankssssss
what speed do all electromagnet waves travel​
conjugate the verbs in parentheses in the present in (french)​
Read this excerpt from paragraph 2. Roosa carried possibly 2000 or more seeds in the cannister in his personal kit, a small canvas pouch that stayed with him as
Which statement is an example of personification? O The United States has grown with the rise of immigration. O The Statue of Liberty welcomes newcomers with op
answer?........................
a−(−3.75)=6.11 What is a?
What is the solution to this equation? 1n(x + 6) - 1n(2x - 1) = 0
Choose all the answers that apply. Photosynthesis _____. 1.) can be done by animal cells. 2.) happens in the palisade layer. 3.) needs chlorophyll to happen. 4.
C. Explain the importance of the veterinary physician .​