执行下面程序,输出结果是( )。#include [stdio.h] int main() { int x,y; for(x=1,y=5;xA: 3
B: 5
C: 7
D: 9
B: 5
C: 7
D: 9
举一反三
- 以下程序输出的结果是____________.#include [stdio.h]int main(){ int x=30,y=7; x=y=x%y; printf("%d\n",x); return 0;}
- 以下程序没有语法问题的是() A: B: include<;stdio.h>;int main( ){int x , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} C: D: include<;stdio.h>;int main( ){int x = 3 ;y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;} E: F: include<;stdio.h>;int main( ){int x = 3 ,y ; printf( "%d\n" , x / y ) ;y = 5; return 0 ;} G: H: include<;stdio.h>;int main( ){int x = 3 , y = 5 ; printf( "%d\n" , x / y ) ; return 0 ;}
- #include [stdio.h] int x,y; int f(int x){ y=x++; printf("%d",y); } int main(void){ int x=5; f(x); f(x); return 0; }
- 运行下面程序时,若从键盘输入3,5,则程序的输出结果是______. #include [stdio.h] int main( ) { int x,y; scanf("%d,%d",&x,&y); if (x==y) printf("x==y"); else if (x>y) printf("x>y"); else printf("x<y"); } A: x==y B: x<y C: 5>3 D: 3<5
- 以下程序输出的结果是__________.#include [stdio.h]int main(){ int x=30,y=7; y=(-x+3)%y-2; printf("%d\n",y); return 0;}