1、
#include
2、
}
#include "stdio.h"
#include "string.h"
void main( )
{
char s[10];
unsigned i;
/**************found************/
int n=0;
scanf("%s",s);
/**************found************/
for(i=0;i 3、include 4、12,5,34,5,9,21,18};
double s;
/************found************/
s = average(a,12);
printf("The result is:%.2f\n",s);
}
#include 5、canf("%d,%d",&x,&y);
if(x > y)
{t = x;x = y;y = t;}
n1=x;n2=y;
t = n2 % n1;
/************found************/
while( n1>n2 )
{
n2 = n1 ;
n1 = t ;
t = n2 % n1;
}
/************found************/
max = t;
min = x * y / max ;
pri 6、ntf("max is :%d\n",max);
printf("min is :%d\n",min);
}
#include 7、end************/
return min;
}
void main()
{
void NONO( );//函数声明
int a[N][N]={-1,2,3,4,9,5,7,8,6};
int i,j,min;
printf("array is:\n");
for(i=0;i 8、a);
printf("Result is:%d\n",min);
NONO( );
}
void NONO( )
{ FILE *fr,*fw;
int i,j,k,m,a[N][N];
fr=fopen("D:\\exam\\05910327\\PROGIN.DAT","r");
fw=fopen("D:\\exam\\05910327\\PROGOUT.DAT","w");
for(i=1;i<=5;i++)
{ for(j=0;j 9、
{ fscanf(fr,"%d",&a[j][k]);
fprintf(fw,"%4d",a[j][k]);}
fprintf(fw,"Min = %d\n",fun(a));}
fclose(fr);
fclose(fw);
}
#include 10、
for ( i=0;i<3;i++)
/************found************/
for ( j=0;j<3;j++)
{ if ( max < a[i][j] )
max = a[i][j];
/************found************/
if (min > a[i][j])
min = a[i][j];
}
printf("The max is:%d\n",max);
printf("The min is:%d\ 11、n",min);
}
#include 12、)
break;
if( j>k )
/************found************/
s=s+a[i];
}
printf("Sum is:%d\n",s);
}
#include 13、found************/
b+=i+1;
}
printf("sum of evens is %d\n",b);
printf("sum of odds is %d\n",a);
}
#include 14、/
s=0;
for ( i=0;i<12;i++)
{
k=(int)sqrt(a[i]);
for ( j=2;j <= k;j++)
if (a[i] % j == 0)
break;
if( j>k )
/************found************/
s=s+a[i];
}
printf("Sum is:%d\n",s);
}
#include 15、o.h>
int fun(char str1[],char ch)
{
/***********begin***********/
/************end************/
}
void main()
{
void NONO( );//函数声明
char str1[80],ch;
int count;
printf("Enter str1:\n");
gets(str1);
printf("Enter ch:\n 16、");
ch=getchar();
count=fun(str1,ch);
printf("Result is:%d\n",count);
NONO( );
}
void NONO( )
{FILE *fr,*fw;
int i,count;
char str[80],ch;
fr=fopen("D:\\exam\\05910327\\PROGIN.DAT","r");
fw=fopen("D:\\exam\\05910327\\PROGOUT.DAT","w");
for(i=1;i<=2;i++)
{ fscanf(fr,"%s",str);fgetc(fr);
ch=fgetc(fr);
count=fun(str,ch);
fprintf(fw,"Result is :##%d\n",count);}
fclose(fr);
fclose(fw);
}






