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
0
Answer:
what is Java program
PLZ mark me as brainlist
Answered by
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
Physics,
4 months ago
Computer Science,
4 months ago
Physics,
1 year ago
Biology,
1 year ago
Chemistry,
1 year ago