You are viewing a single comment's thread. Return to all comments →
// Declare second integer, double, and String variables.
// Read and save an integer, double, and String to your variables.
i1 = parseInt(readLine());
d1 = parseInt(readLine());
s1 = readLine();
// Print the sum of both integer variables on a new line.
console.log(i + i1);
// Print the sum of the double variables on a new line.
console.log((d + d1).toFixed(1));
// Concatenate and print the String variables on a new line
// The 's' variable above should be printed first.
console.log(s + s1);