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.
hello! I don't see where is the problem in my code
/* Declare second integer, double, and String variables. */
int j;
double l;
String m;
/* Read and save an integer, double, and String to your variables.*/
j=scan.nextInt();
l=scan.nextDouble();
m=scan.nextLine();
// Note: If you have trouble reading the entire String, please go back and review the Tutorial closely.
/* Print the sum of both integer variables on a new line. */
System.out.println(i+j);
/* Print the sum of the double variables on a new line. */
System.out.println(d+l);
/* Concatenate and print the String variables on a new line;
the 's' variable above should be printed first. */
System.out.println(s+" "+m);
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 →
hello! I don't see where is the problem in my code