You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.;
public class Solution {
public static void main(String[] args) { int i=4; double d=4.0; String s="HackerRank"; Scanner sc = new Scanner(System.in); int i2=sc.nextInt(); double d2=sc.nextDouble(); sc.nextLine(); String s2=sc.nextLine(); System.out.println(i+i2); System.out.println(d+d2); System.out.println(s+" "+s2); sc.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 →
import java.io.; import java.util.;
public class Solution {
}