以下哪个语句有语法错误
A:
B: include<stdio.h>
C: scanf(“%d\n”, &a)
D: Printf(“123”);
E: for (i == 1; i < 10; ++ i) { i ++; }
A:
B: include<stdio.h>
C: scanf(“%d\n”, &a)
D: Printf(“123”);
E: for (i == 1; i < 10; ++ i) { i ++; }
举一反三
- 定义数组,输入10个学生成绩 A: int d[10],i;for(i=0;i<10;i++) scanf("%d",&d[i]);<br> B: int d[10],i;for(i=1;i<11;i++)<br> scanf("%d",&d[i]);<br> C: int d[10],i;for(i=0;i<10;i++)<br> scanf("%d",d[i]); D: int d[10],i;for(i=0;i<=9;i++)<br> scanf("%d",d[i]);<br><br>
- 使用scanf()函数时,在源程序开头必须写预处理命令( ) A: B: include <stdio.h> C: D: include <stdio > E: include <stdio.h> F: G: include <scanf.h>
- 以下程序的功能只保留字符串的小写字母,请将程序补充完整。#include void fun(char s[]) { int i,j; for(i=0,j=0;s[i]!='\0';i++) if ( (1) ) { s[j]=s[i]; (2) ; } s[j]='\0'; } void main() { char s[100]="abc123abc123abc"; (3) ; puts(s); }(1)应该填写的是:[/i][/i] A: s[i]>='a'&&s[i]<='z' B: s[i]>='A'&&s[i]<='Z C: s[i]>='0'&&s[i]<='9' D: s[i]>=a&&s[i]<=z
- 以下关于现值系数和终值系数说法正确的是( ) A: 0<(P/F,i,n)<1 0<(F/P,i,n)<1 B: (P/F,i,n)>1 (F/P,i,n)>1 C: 0<(P/F,i,n)<1 (F/P,i,n)>1 D: 0<(F/P,i,n)<1 (P/F,i,n)>1
- 程序填空,使下面程序实现输出N!(N<=10000)的最低三位。#include <stdio.h>int main(){int N,M=1;scanf("%d",&N);for (int i=1;i<=N;i++){M=M*i;M=__________;}printf("%03d",M);return 0;}?