GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Example/Example/src/GalToLitTable.java at master · ResilientSpring/Example Expand file tree/ Copy pathGalToLitTable.javaMore file actions 39 lines (26 loc) · 650 Bytes / Copy pathGalToLitTable.javaFile metadata and controls39 lines (26 loc) · 650 Bytes 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 33 34 35 36 37 38 39 public class GalToLitTable { /** * */ public GalToLitTable() { // TODO Auto-generated constructor stub } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub double gallons, liters; int counter = 0; for (gallons = 1; gallons <= 100; gallons++) { liters = gallons * 3.7854; System.out.println(gallons + " gallons is " + liters + " liters."); counter++; // Increment the line counter with each loop iteration. // Every 10 line, print a blank line. if (counter == 10) { System.out.println(); counter = 0; // Reset the line counter. } } } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |