Skip to main content

Posts

Showing posts with the label Day 1: Data Types Hackerrank Solution

Day 1: Data Types Hackerrank Solution in java

 Day 1: Data Types Hackerrank Solution Do Check My Explanation Video On Following Code: Sample Input 12 4.0 is the best place to learn and practice coding! Sample Output 16 8.0 HackerRank is the best place to learn and practice coding! Code: import  java.io.*; import  java.util.*; import  java.text.*; import  java.math.*; import  java.util.regex.*; public   class  Solution {           public   static   void  main(String[] args) {          int  i =  4 ;          double  d =  4.0 ;         String s =  "HackerRank " ;                  Scanner scan =  new  Scanner(System.in);          /* Declare second integer, double, and String variables. */          int  j = scan.nextInt();          double  d2 = scan.nextDouble();                    scan.nextLine();         String s2 = scan.nextLine();                   /* Read and save an integer, double, and String to your variables.*/          // Note: If you have trouble reading the entire String, please go back and review the Tutorial clo