NgNN double x=17;int y;,当执行Y=(int)(x/5)%2;之后Y的值为【 】。
NgNN double x=17;int y;,当执行Y=(int)(x/5)%2;之后Y的值为【 】。
相关考题:
设x和y均为int型变量,则执行下面的循环后,y值为()。include void main(){int x, y;f 设x和y均为int型变量,则执行下面的循环后,y值为( )。#include <iostream.h>void main(){int x, y;for(y= 1,x= 1 ;y<=50;y++){ if(x>=10) }break;if (x%2==1){ x+=5; continue;} x-=3;} cout<<y;A.2B.4C.6D.8
设x和y均为int型变量,则执行下面的循环后,y的值为 。 for (y=1,x=1;y<=5;y++) { if (x>=10) break; if (x%2==1) { x+=5; continue; } x-=3; }A.2B.4C.6D.8
17、执行下列语句:int x = 5, y; y = x / 2; 执行后变量y的数据类型和值分别为()。A.int, 2.5B.int, 2C.double, 2.0D.double, 2.5
18、执行下列语句:int x = 5; double y; y = x / 2; 执行后变量y的数据类型和值分别为()。A.int, 2.5B.int, 2C.double, 2.0D.double, 2.5
【填空题】若有语句double x=17;int y;,当执行y=(int)(x/5)%2;之后y的值为