Computer Science, asked by amboy17, 5 months ago

Can someone plz tell me the solution for this ??
No spoofs plz exam tomorrow. ​

Attachments:

Answers

Answered by anindyaadhikari13
2

Answer:-

Hey there, your program has errors.

nextLine() is used to input a string. Here you are taking integer input. You have to use nextInt() method of scanner class.

Write this code.

int d=sc.nextInt();

Similar questions