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.
Day 1: Data Types
Day 1: Data Types
Sort by
recency
|
3992 Discussions
|
Please Login in order to post a comment
As someone just now coming in for Java after learning some C# this stuff is wack. Tip: do some looking into how various scanner methods work on value types. Take special note of where it stops.
in python
a=int(input()) b=float(input()) c=str(input()) sum1=a+i sum2=d+b sum3=s+c print(sum1) print(sum2) print(sum3)
import java.util.Scanner;
public class Solution { public static void main(String[] args) { int i = 4; double d = 4.0; String s = "HackerRank ";
}
agreed on confunsing wording
python3
I don't know if it's just me but the wording was super confusing.