Input Double

import java.util.Scanner;
class A
{
public static void main(String args[])
{
double d;
System.out.println(“Enter a Number”);

Scanner inp=new Scanner(System.in);
d=inp.nextDouble();
System.out.println(d);
}

}


Leave a Reply

Your email address will not be published. Required fields are marked *