You are viewing a single comment's thread. Return to all comments →
int i2 = 0; double d2 = 0.0; String s2 = ""; i2 = Integer.parseInt(scan.nextLine().replace("\\s", "")); d2 = Double.parseDouble(scan.nextLine().replace("\\s", "")); s2 = scan.nextLine(); System.out.println(i + i2); System.out.println(d + d2); System.out.println(s + s2);
it is c language
no, it's java
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
it is c language
no, it's java