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 @ 11:37am
Java 5 Code
[
Download
]
import java.util.*; public class verbrauch { public static void main(String[] args) { Scanner muh=new Scanner(System.in); float x, y; System.out.println("Es werden die Benzinkosten berechnet."); System.out.print("Gebe die gefahrene Strecke in km ein: "); x=muh.nextInt(); System.out.print("Gebe den Benzinverbrauch in Milliliter ein: "); y=muh.nextInt(); x=(y/x); x=x*100; y=(x/1000); y= y*132; 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); System.out.print("Die Kosten pro 100km betragen: "+y); }}
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.44 / 8
77 Votes
http://codebin.yi.org/397
page generated in 0.01 seconds