Search:

Type: Posts; User: Mounkaila144

Search: Search took 0.22 seconds.

  1. Replies
    13
    Views
    638

    Re: read a double type on the keyboard

    public static void main(String[] args) {
    double n;
    Scanner sc=new Scanner(System.in );
    System.out.println("enter a decimal number") ;
    n=sc.nextDouble();
    System.out.println("you...
  2. Replies
    13
    Views
    638

    read a double type on the keyboard

    hello

    public static void main(String[] args) {
    double n;
    Scanner sc=new Scanner(System.in );
    n=sc.nextDouble();

    }
    when i enter a decimal number on the keyboard it doesn't...
Results 1 to 2 of 2