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 Java 5 Code
Posted by: Verbrauch | October 5, 2009 @ 12:53pm
Java 5 Code
[
Download
]
import java.util.*; public class verbrauch { public static void main(String[] args) { Scanner keyb=new Scanner(System.in); int verbauch, y, z, km; System.out.println("Es werden die Benzinkosten berechnet."); System.out.print("Gebe die gefahrene Strecke in km ein: "); z=keyb.nextInt(); System.out.print("Gebe den Benzinverbrauch in Milliliter ein: "); y=keyb.nextInt(); verbauch=(y*100)/z; km=(x*132)/1000; System.out.println(); System.out.println("Der Benzinpres von 132 Cent pro Liter wird verwendet."); System.out.println(); System.out.println("Der Vebrauch in Milliliter auf 100km betr�gt: "+x); //alt + 0132 = � = � System.out.print("Die Kosten pro 100km betragen: "+km +" Eurocent"); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.42 / 8
71 Votes
http://codebin.yi.org/398
page generated in 0.00 seconds