float 表示浮點(diǎn)數(shù),而(a+b)/2=2.5,∴(float)(a+b)/2=2.5
int表示整型,%表示余數(shù)∴(int)x%2/4表示3.5先除以2得到的余數(shù),再除以4,然后取整數(shù)部分,為0
∴答案為2.5
設(shè)a=2,b=3,x=3.5,y=2.5,表達(dá)式(float)(a+b)/2+(int)x%2/4 的值為____2.5__
設(shè)a=2,b=3,x=3.5,y=2.5,表達(dá)式(float)(a+b)/2+(int)x%2/4 的值為____2.5__
其他人氣:919 ℃時(shí)間:2020-01-29 01:47:11
優(yōu)質(zhì)解答
我來回答
類似推薦
- 若有定義:int a=7;float x=2.5,y=4.7;則表達(dá)式x+a%3*(int)(x+y)%2/4的值是
- (float)(a+b)/2+(int)x%(int)y 設(shè)a=2,b=3,x=3.5,y=2.5 求表達(dá)式值
- 表達(dá)式(float)(a+b)/2+(int)x%(int)y的值為__________,設(shè)a=3,b=5,x=4.2,y=2.99.
- 設(shè)float x=4.5,y=4.7;int a=7;表達(dá)式x+a%3*(int)(x+y)%2/4的值為:.
- 15.若有定義:int a=7;float x=2.5,y=4.7;則表達(dá)式x+a%3*(int)(x+y)%2/4的值是( )
- 判斷一個(gè)數(shù)是質(zhì)數(shù)還是合數(shù),要看它什么
- 酬樂天揚(yáng)州初逢席上見贈(zèng)中寄希望于未來的哲理詩句是什么
- Whether i go or not,we are the best
- Are ther any books in the bag?Yes,there is__________. A.it B. one C. any D. some
- it`s cool here because wind can blows in ( ) the two windows
- 如圖,是一個(gè)幾何體的三視圖,那么這個(gè)幾何體是_.
- ”秋處露秋寒霜降”是二十四節(jié)氣歌中的一句,其中第二個(gè)”秋”指的是
猜你喜歡
- 1即是兩大洋分界線又是兩大洲分界線的海峽是哪個(gè)?
- 2甲數(shù)除以乙數(shù),商是5分之2,甲數(shù)與乙數(shù)的和是21,甲數(shù)是(),乙數(shù)是()
- 3已知f(x)=ax2+bx(a≠0)滿足f(x-1)=f(3-x)且方程f(x)=2x有兩個(gè)等根,求f(x)的解析式.
- 4請問有關(guān)趙州橋的傳說有哪些?
- 5關(guān)于interest 的英語改錯(cuò)
- 6God made the integers; all else is the work of man什么意思
- 7方程0.02分之0.2x-0.2 -0.5分之x+1=3的解是()
- 8多少硫酸和多少氯化鉀高溫后反映出多少硫酸鉀和多少鹽酸.
- 9in my home all the chairs are made of b_____
- 10雷諾實(shí)驗(yàn)中如何正確設(shè)置高位水槽
- 11一只掛鐘的時(shí)針長10厘米 急!
- 12they want to buy some fruit .對劃線部分提問(some fr