WAP in java to enter following details of book.
1.title
2.author
3.publisher
4.price
Answers
Answered by
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
Math,
6 months ago
Science,
6 months ago
Chemistry,
6 months ago
Math,
1 year ago
Political Science,
1 year ago