Computer Science, asked by ry5841781, 1 year ago

WAP in java to enter following details of book.
1.title
2.author
3.publisher
4.price​

Answers

Answered by mn121
0

Answer:

import java.util.*;

public class book

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

String title, author, publisher;

double price;

System.out.println("Enter title of book:");

title = in.nextLine();

System.out.println("Enter author of book:");

author = in.nextLine();

System.out.println("Enter publisher of book:");

publisher = in.nextLine();

System.out.println("Enter price of book:");

price = in.nextInt();

}

}

Hope it helps you...

Please mark it as brainliest...

Similar questions