The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: a | September 28, 2010 @ 12:45am
PHP Code
[
Download
]
import java.util.Scanner; public class Book { public static void main(String args[]) { //start input of strings and values Scanner bw = new Scanner(System.in); int StockNumber; String AuthorName = ""; String BookTitle = ""; double BookPrice; int BookPages; System.out.print("Stock Number: "); StockNumber = bw.nextInt(); bw.nextLine(); System.out.print("Author: "); AuthorName = bw.nextLine(); System.out.print("Title: "); BookTitle = bw.nextLine(); System.out.print("Book Price: $"); BookPrice = bw.nextDouble(); System.out.print("Book Pages: "); BookPages = bw.nextInt(); System.out.println("Stock number: " + StockNumber); System.out.println("Author: " + AuthorName); System.out.println("Title: " + BookTitle); System.out.println("Book Price: $" + BookPrice); System.out.println("Book Pages: " + BookPages); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.58 / 8
55 Votes
http://codebin.yi.org/863
page generated in 0.00 seconds