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.
// Read and save an integer, double, and String to your variables
// write your code below this it is a simple and easy solution.
String str = "is the best place to learn and practise coding!";
a = scan.nextInt();
b = scan.nextDouble();
scan.nextLine(); // after reading double , it is used to avoid issue before reading a string
str = scan.nextLine();
System.out.println(i + a);
System.out.println(d + b);
System.out.println(s + str);
Cookie support is required to access HackerRank
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 →