Home > Back-end >  Compiling pass it to do
Compiling pass it to do

Time:03-01

I am a little white, so keep on asking silly questions
You don't bother
grow
Yesterday I wrote a factorial, with process oriented approach,



Compile and run through the



This morning, I changed it, change to the object-oriented approach



Is this way

Then, compile it pass the

Below is error, I can't read



How to do?


Scanner sc=new Scanner (System. In);
System. The out. Println (" please enter a number ");
Int n=sc. NextInt ();//to get Numbers from the keyboard, I move the position of whether appropriate

CodePudding user response:

I change a line, and now there is only one mistake, this mistake how to deal with the

CodePudding user response:

Add a brace in the end
  • Related