We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
When you add an integer and then hit enter (/n) , compler takes that '/n' as a string. So when you take input string after integer, double etc, you must have to add an extra scan().
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
When you add an integer and then hit enter (/n) , compler takes that '/n' as a string. So when you take input string after integer, double etc, you must have to add an extra scan().