已知函數,輸入的值,計算的值.
問題詳情:
已知函數,輸入的值,計算的值.
【回答】
Read x
If x<1 then
y←x
Else If x<10 then
y←2x-1
Else
y←3x-11
End If
Print y
知識點:算法初步
題型:解答題
問題詳情:
已知函數,輸入的值,計算的值.
【回答】
Read x
If x<1 then
y←x
Else If x<10 then
y←2x-1
Else
y←3x-11
End If
Print y
知識點:算法初步
題型:解答題