Computer Science, asked by manashkamal, 1 year ago

How to write a Javascript code to input your name, residential address, and telephone number and display them on separate lines​

Answers

Answered by sutapamandal1981
17

Answer : follow the given e.g below

Attachments:
Answered by RoshanAliMatrix
2

Answer:

Explanation:

import java.util.Scanner;

public class details

{

     public static void main()

     {

         Scanner sc  = new Scanner(System.in);

         System.out.println("Enter your name: ");

         String name=sc.next();

         System.out.println("Enter your residential address: ");

         String add=sc.nextLine();

         System.out.println("Enter your telephone number: ");

         long num=sc.Long();

         System.out.println(name);

         System.out.println(add);

         System.out.println(num);

      }

}

Similar questions