main() {int s=0,a=1,n; scanf(“%d”,&n); do {s+=1;a=a-2;} while(a!=n); printf("%d\n”,s); }If you want the output value of the program to be 2, the value you should enter for n from the keyboard is ( ).
查看答案
%f of scanf function, used to enter single precision real number in decimal form.
Empty type is not a data type of C language.
All variables used in C must have their data type specified.
#includemain() { char c1,c2; c1='A'+'8'-'4'; c2='A'+'8'-'5'; printf("%c,%d\n",c1,c2); } It is known that the ASCII code of letter 'A' is 65, and the output result of this program is ( )
A. E,68
B. D,69
C. E,D
D. Output has no fixed value