Computer Science, asked by Kishnatiwari, 1 year ago

Here's the question. ​

Attachments:

Answers

Answered by MrVishal369
0

May i sent the answer in normal programing.way or from Scanner process


Kishnatiwari: Scanner class
MrVishal369: ok just wait 5 min
MrVishal369: i m now solving maths question
MrVishal369: just 5 min plz
Kishnatiwari: Mrvishal
Kishnatiwari: send me
Answered by anupama777vidya
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:

Kishnatiwari: i want of scanner class.
anupama777vidya: let me revise that first....I will tell u after dat
Similar questions