Here's the question.
Attachments:

Answers
Answered by
0
May i sent the answer in normal programing.way or from Scanner process
Kishnatiwari:
Scanner class
Answered by
2
Answer:
Heyy....Here is ur answer
Hope it helps...
If u wanna do with scanner class,then add this header file- import java.util.*;
Then replace the bufferedreader thing with-
Scanner sc=new Scanner(System.in);
Accept the numbers using-
int a=sc.nextInt();
int b=sc.nextInt();
Thats it....
Attachments:



Similar questions