Conversion from integer to double

Conversion from integer to double

Problem Description


Java Program to convert from integer to double number

Logic Test Case 1


Input (stdin)

23


Expected Output


23

Logic Test Case 2


Input (stdin)

512


Expected Output


512



CODE AREA



import java.util.*;

public class TestClass {

public static void main(String[] args) { 

       int a;

       Scanner in=new Scanner(System.in);

       a=in.nextInt();

       System.out.println(""+a);

}

Post a Comment

0 Comments