-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestion_01.java
32 lines (25 loc) · 905 Bytes
/
question_01.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import java.util.Scanner;
public class question_01 {
public static void main(String[]args){
Scanner in =new Scanner(System.in);
String title;
String auname;
int year;
int price;
System.out.print("Enter the book title:");
title=in.nextLine();
System.out.print("Enter the Author name:");
auname=in.nextLine();
System.out.print("Enter the publication year:");
year=in.nextInt();
System.out.print("Enter the Price:");
price=in.nextInt();
System.out.println("Book details:");
System.out.println("***********************");
System.out.println("Title: "+title);
System.out.println("Author: "+auname);
System.out.println("publication year: "+year);
System.out.println("price: "+price);
System.out.println("***********************");
}
}