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: asd | April 21, 2010 @ 5:09am
PHP Code
[
Download
]
echo Please enter an integer value of millimetres to be converted: read MM CM=$(echo "scale=1; $MM / 10" | bc) M=$(echo "scale=3; $MM / 1000" | bc) echo $MM millimetres is equal to $CM centimetres. if [ $MM -gt 999 ] then echo $MM millimetres is equal to $M metres. else echo $MM millimetres is equal to 0$M metres. fi
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.54 / 8
224 Votes
http://codebin.yi.org/599
page generated in 0.01 seconds