Computer Science, asked by nagsuparnaote92c, 1 year ago

Please solve question no. 20 from java.

Attachments:

Answers

Answered by moon1237879
1
I am also an ICSE student.
After seeing this question it is clear that firstly you have to take the class name and later by using either scanner class or buffer reader you can declare the variables as mentioned then you have to take if else statement. Don't forget to use for loop before starting the statement. And at last print the output as a result.
If you have previously solved some questions like this then you can definitely do this well!

nagsuparnaote92c: Yes, I could finally solve this program.
Similar questions