Re: [問題] c語言程式求助

看板C_and_CPP作者時間15年前 (2009/10/14 06:46), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串61/70 (看更多)
補上swi-prolog的版本。 #!/usr/bin/env swipl topound :- write('please input your weight: '), read(Weight), calc(Weight). calc(stop) :- !. calc(Weight) :- Pound is Weight / 0.454, write('your weight is ' + Pound + 'pound\n'), topound. :- topound. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.50.40.140 ※ 編輯: kenzou 來自: 123.50.40.140 (10/14 14:55)

10/14 18:06, , 1F
呃阿~~本來也想用這個語言來大混戰的 沒想到還是被用了
10/14 18:06, 1F
文章代碼(AID): #1ArNFKfv (C_and_CPP)
討論串 (同標題文章)
文章代碼(AID): #1ArNFKfv (C_and_CPP)