You are viewing a single comment's thread. Return to all comments →
This is correct code but still icant figure it out why do we taken that i & d as 4 can anybody** help me **with that .
int i = 4; double d = 4.0; String s = "HackerRank "; Scanner scan = new Scanner(System.in); int i2 = scan.nextInt(); double d2 = scan.nextDouble(); scan.nextLine(); String s2 = scan.nextLine(); System.out.println(i + i2); System.out.printf("%.1f\n", d + d2); System.out.println(s + s2); scan.close(); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
This is correct code but still icant figure it out why do we taken that i & d as 4 can anybody** help me **with that .
}