https://ide.codingblocks.com/s/62134 , this is the code of simple hcf. I am unable to find the problem that it gives output in eclipse but when i submitted in hackerblocks platform , it shows the Exception in thread “main” java.util.InputMismatchException. please try to resolve my problem.
Simple hcf shows exception
Hii Pankaj,
Just delete the line 7 and 10 in your code.
You have not to instruct the user about what to enter.
yes. now it works fine.