Can someone plz tell me the solution for this ??
No spoofs plz exam tomorrow.
Attachments:
Answers
Answered by
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