HACKERRANK "DAY 1"





CODE :

import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Day1 {
    //Datatypes
    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 i2 = scan.nextInt();
        double d2 = scan.nextDouble();
        scan.nextLine();
        String s2 = scan.nextLine();

        System.out.println(i+i2);
        System.out.println(d+d2);
        System.out.println(s+s2);

        

        scan.close();
   }
} 

GITHUB : https://github.com/Smsahu1/

Please don't enter any spam link

Post a Comment

Please don't enter any spam link

Post a Comment (0)

Previous Post Next Post