已知函數,輸入的值,計算的值.
- 習題庫
- 關注:1.69W次
問題詳情:
已知函數,輸入的值,計算的值.
【回答】
Read x
If x<1 then
y←x
Else If x<10 then
y←2x-1
Else
y←3x-11
End If
Print y
知識點:算法初步
題型:解答題
- 文章版權屬於文章作者所有,轉載請註明 https://zhongwengu.com/zh-hant/exercises/j2ql62.html
問題詳情:
已知函數,輸入的值,計算的值.
【回答】
Read x
If x<1 then
y←x
Else If x<10 then
y←2x-1
Else
y←3x-11
End If
Print y
知識點:算法初步
題型:解答題