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 of these are not eukaryotic cells? A:skin cells B:bacteria cells C: rose petal cells or D: oak leaf cells
which two terms best describe the inheritance of human blood types?
An element's reactivity and other chemical properties are determined by the number of
1. Do you think the style of the book suggests anything about its value? Explain.
What is 9.725 rounded to the nearest tenth..
John had a stock of 1200 books in his bookshop. He sold 75 on Monday, 50 on tuesday,64 on wednesday 68 on thursday and 163 on friday. What percentege of the boo
What does additive inverse mean
what does 9e plus 10 mean?
what is the falling action of the landlady by roald dahl
which is bigger 9.8 or 9.80