W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
if expr then expr if expr then expr else expr else expr
let a : int32 = 100 let b : int32 = 200 (* check the boolean condition using if statement *) if (a = 100) then (* if condition is true then check the following *) if (b = 200) then printfn "Value of a is 100 and b is 200\n" printfn "Exact value of a is: %d" a printfn "Exact value of b is: %d" b
編譯和執(zhí)行程序時(shí),將產(chǎn)生以下輸出
Value of a is 100 and b is 200 Exact value of a is: 100 Exact value of b is: 200
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: