题目内容

#include
#include
#define M 100
void fun(int m, int *a, int *n)
{ int i,j=0;
for(i=1;i<=m;i++)
if(i%7==0||i==0)
a[j++]=i;
*n=j;}
main()
{ int aa[M],n,k;
clrscr();
fun(10,aa,&n);
for(k=0;k
if((k+1) ==0)printf("\n");
else printf("M",aa[k]);
printf("\n");}

查看答案
更多问题

cout$amp;;$br>

#include
void main()
{
int num=0,i=8;
do{
i--;
num++;
}while(--i):
cout$amp;}

#include
main ()
{ int a=1,b=2,c=3,d=0;
if (a==1 )
if (b!=2 )
if (c==3 ) d=1;
else d=2;
else if (c!=3 ) d=3;
else d=4;
else d=5;
printf (" %d\n " ,d ) ;
}
程序运行后的输出结果是 【 7 】 。

Private Sub Comand1_Click ()
Dim count (25 ) As Integer, ch As String
ch=U c ase (InputBox (" 请输入字母字符串 " ) )
For k=1 To Len (ch )
n=Asc (Mid (ch,k,1 ) ) -Asc (" A " )
If n>=0 Then
Count (n ) =Count (n ) + 1
End If
Next k
m=count (0 )
For k=1 To 25
If m
m=count (k )
End If
Next k
Print m
End Sub
A ) 0
B ) 1
C ) 2
D ) 3

答案查题题库