Computer Science, asked by simsup3705, 5 months ago

Help Mr.Ben who is a programmer, in developing a registration form on console. Customers will not just input data, but also view the details once he/she finishes the registration. Write a java program

Answers

Answered by kavyasuriya718
0

Answer:

what is Java program

PLZ mark me as brainlist

Answered by saitejaswichakravara
0

Answer:

import java.util.Scanner;

public class Customer {

public static void main(String[] args){

 Scanner sc=new Scanner(System.in);

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

 String name=sc.nextLine();

 System.out.println("Enter age:");

 int age=sc.nextInt();

 System.out.println("Enter gender:");

 String gender=sc.next();

 System.out.println("Hailing from:");

 String from = sc.nextLine();

 System.out.println("Welcome, "+name+"!");

 System.out.println("Age:"+age);

 System.out.println("Gender:"+gender);

 System.out.println("City:"+from);

}

}

Explanation:

Similar questions