1、void jsVal()
{int bb[4];int i,j,k,flag;
for (i=0;i<200;i++)
{bb[0]=a[i]/1000;
bb[1]=a[i]%1000/100;
bb[2]=a[i]%100/10;
bb[3]=a[i]%10;
for (j=0;j<4;j++)
{if (bb[j]%2==0)
flag=1;
else{flag=0;break;} }
if (flag==1)
{ b[cnt]=a[i];cnt++;}}
for(i=0;i<cnt-1;i++)
for(j=i+1;j<cnt;j++)
if (b[i]<b[j])
{k=b[i]; b[i]=b[j];b[j]=k;}}
3、void jsSort()
{int i,j,data;
for(i=0;i<199;i++)
for(j=i+1;j<200;j++)
{if (aa[i]%1000<aa[j]%1000)
{data=aa[i];aa[i]=aa[j];
aa[j]=data;}
else if(aa[i]%1000==aa[j]
%1000)
if (aa[i]>aa[j])
{data=aa[i];aa[i]=aa[j];
aa[j]=data;} }
for(i=0;i<10;i++)
bb[i]=aa[i];}
4、void encryptChar()
{int i;char *pf;
for(i=0;i<maxline;i++)
{pf=xx[i];
while(*pf!=0)
{if(*pf*11%256>130
|| *pf*11%256<=32);
Else
*pf=*pf*11%256;pf++;}}}
5、void ConvertCharA(void)
{int i,j,str;
for(i=0;i<maxline;i++)
{ str=strlen(xx[i]);
for(j=0;j<str;j++)
if(xx[i][j]=='z')
xx[i][j]='a';
else if(xx[i][j]>='a'
&& xx[i][j]<='y')
xx[i][j]+=1;}}
6、void SortDat()
{int i,j;PRO xy;
for(i=0;i<99;i++)
for(j=i+1;j<100;j++)
if(strcmp(sell[i].mc,sell[j].
mc)>0)
{xy=sell[i];sell
[i]=sell[j];sell[j]=xy;}
else
if(strcmp(sell[i].mc,sell[j].
mc)==0)
if(sell[i].je>sell[j].je)
{xy=sell[i];sell[i]=sell[j];s
ell[j]=xy;}}
7、void jsVal()
{int i,j,flag=0;int k;
for(i=0;i<MAX-5;i++)
{for(j=i+1;j<=i+5;j++)
{if (a[i]>a[j]) flag=1;
else {flag=0;break;} if(a[i]
%2==0) flag=0;}
if (flag==1)
{b[cnt]=a[i];cnt++;} }
for(i=0;i<cnt-1;i++)
for(j=i+1;j<cnt;j++)
if (b[i]>b[j])
{k=b[i];b[i]=b[j];b[j]=k;}}
8、void StrCharJR(void)
{int i,j,str1;
for(i=0;i<maxline;i++)
{str1=strlen(xx[i]);
for(j=0;j<str1;j++)
xx[i][j]+=xx[i][j]>>4;}}
9、void encryptChar()
{int i;char *pf;
for(i=0;i<maxline;i++)
{ pf=xx[i];
while(*pf!=0)
{if(*pf%2==0 ||
*pf*11%256<=32);
else *pf=*pf*11%256;
pf++;}}}
10、int jsValue(int t)
{ int f1=0,f2=1,fn;
fn=f1+f2;
while(fn<=t)
{f1=f2;f2=fn;fn=f1+f2;}
return fn;}
11、double countValue(int n)
{double xy=0.0; int i;
for(i=1;i<n;i++)
if(i%3==0 && i%7==0) xy+=i;
xy=sqrt((double)xy);
return xy;}
12、int jsValue(int bb[ ])
{ int i,j,k=0;
int hun,ten,data;
for(i=100;i<=999;i++)
{ j=10;while(j*j<=i)
{if (i==j*j)
{hun=i/100;data=i-hun*100;
ten=data/10;data=data-ten*10;
if(hun==ten || hun==data ||
ten==data)
{bb[k]=i; k++;} }j++;}}
return k;}
13、void CalValue(void)
{int i,data;
for(i=0;i<MAXNUM;i++)
{if(!xx[i]) continue;
if(xx[i]>0) totNum++;
data=xx[i]>>1;
if (data%2==0)
{totCnt++;totPjz+=xx[i];}}
totPjz/=totCnt;}
14、void jsVal()
{int i,thou,hun,ten,data,j;
int ab,cd;
for(i=0;i<200;i++)
{thou=a[i]/1000;hun=a[i]
%1000/100; ten=a[i]
%100/10;data=a[i]%10;
ab=10*thou+ten;cd=10*data+hun;
if ((ab-cd)>=0 && (ab-cd)<=10
&& ab%2==1 && cd%2==1 &&
ab!=0 && cd!=0)
{b[cnt]=a[i]; cnt++; }}
for(i=0;i<cnt-1;i++)
for(j=i+1;j<cnt;j++)
if(b[i]<b[j])
{data=b[i];b[i]=b[j];
b[j]=data;}}
15、void jsVal()
{int i,j,flag=0;
for (i=0;i<MAX-5;i++)
{for(j=i+1;j<=i+5;j++)
{if(a[i]<a[j]) flag=1;
else flag=0;
if(a[i]%2!=0) flag=0;
if (flag==0) break;}
if(flag==1)
{b[cnt]=a[i];cnt++;}}
for(i=0;i<cnt-1;i++)
for(j=i+1;j<cnt;j++)
if(b[i]>b[j])
{flag=b[i];b[i]=b[j];
b[j]=flag;}}
16、void SortDat()
{int i,j;PRO xy;
for(i=0;i<MAX-1;i++)
for(j=i+1;j<MAX;j++)
if
(strcmp(sell[i].mc,sell[j].mc
)<0)
{ xy=sell[i];sell
[i]=sell[j];sell[j]=xy;}
else
if(strcmp(sell[i].mc,sell[j].
mc)==0)
if(sell[i].je<sell[j].je)
{xy=sell[i];sell[i]=sell[j];
sell[j]=xy;}}
17、void countValue()
{int i,j,half,hun,ten,data;
for(i=101;i<1000;i++)
{ hun=i/100; ten=i%100/10;
data=i%10;
if(hun==(ten+data)%10)
{half=i/2;for(j=2;j<half;j++)
if(i%j==0) break;
if(j>=half)
{cnt++;sum+=i;}}}}