討論串[問題] c語言程式求助
共 70 篇文章

推噓5(5推 0噓 1→)留言6則,0人參與, 最新作者kittenHTH (謎謎)時間16年前 (2009/10/13 14:32), 編輯資訊
0
0
0
內容預覽:
中蟒:. 寫 浮點數(讀入())/.454. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.112.30.43.

推噓6(6推 0噓 4→)留言10則,0人參與, 最新作者scan33scan33 (亨利喵)時間16年前 (2009/10/13 14:15), 編輯資訊
0
0
0
內容預覽:
Ocaml:. let f = read_float();;. let g = f /. 0.454;;. print_float g;;. print_string "Pond\n";;. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.112.30.43.

推噓3(3推 0噓 2→)留言5則,0人參與, 最新作者sjgau (sjgau)時間16年前 (2009/10/13 14:07), 編輯資訊
0
0
0
內容預覽:
prolog 我沒有學過,底下是 LISP. by AutoLISP 版本,by AutoCAD 2010. (setq kg (getreal "\n 請輸入體重(公斤): "). pd (/ kg 0.45359237)). (princ (strcat "\n 你的體重= " (rtos pd

推噓1(1推 0噓 3→)留言4則,0人參與, 最新作者stdio (定靜安慮得慧)時間16年前 (2009/10/13 14:01), 編輯資訊
0
0
0
內容預覽:
Delphi 版 (Pascal). var. kg : string;. begin. kg := inputbox('輸入體重KG');. showmessage(kg + ' = ' + floattostr(strtoFloat(kg)/0.454) + ' pounds');. end;.

推噓0(0推 0噓 6→)留言6則,0人參與, 最新作者sjgau (sjgau)時間16年前 (2009/10/13 13:56), 編輯資訊
0
0
0
內容預覽:
Fortran 95. program VF0937. implicit none. real*8 kg, pd. print *, '請輸入體重(公斤): '. read(*, *)kg. pd= kg/0.45359237. print *, '你的體重= ', pd, ' 磅'. end pr