Sujet : Re: OT: Converting miles/km
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : sci.lang alt.usage.englishDate : 20. Sep 2024, 16:37:43
Autres entêtes
Organisation : Stefan Ram
Message-ID : <CONVERTER-20240920163619@ram.dialup.fu-berlin.de>
References : 1 2 3 4
Phil <
phil@anonymous.invalid> wrote or quoted:
I'm not sure how common this is, but the speedometer in my car has
scales for both mph and km/h, so in principle I don't need to convert.
These days, even regular folks can afford small computers at home,
and with a BASIC interpreter, anyone can whip up his own conversion
program. The programming language BASIC is so simple that anyone
can pick it up. It can handle math terms straight out of the box.
MILES.BAS
10 PRINT "MILES TO KILOMETERS CONVERTER"
20 PRINT "-----------------------------"
30 INPUT "ENTER MILES: "; M
40 K = M * 1.60934
50 PRINT M; "MILES ="; K; "KILOMETERS"
60 END
TRANSCRIPT
MILES TO KILOMETERS CONVERTER
-----------------------------
ENTER MILES: ? 2
2 MILES = 3.21868 KILOMETERS