tf("%d ",i);}}2.#include<stdio.h>main(){int i,max=0;for(i=0;i<=1000;i++){if(i%13!=0) continue;if (max<i)max=i;}printf("max=%d\n",max);}3.#include<stdio.h>main(){int i;float x,m,s,a;scanf("%f",&x);if(x!=0) {m=x;s=x;}for(i=1;;i++){scanf("%f",&x);if(x==0) break;s=s+x;if(m>x)m=x;}a=s/i;printf("最小值 m=%f,平均值 a=%f",m,a);}4.#include <stdio.h>void main(){int i,m,n,t,x=0,y=0;scanf("%d%d",&m,&n);if(m>n){t=m;m=n;n=t;}for(i=m;i<=n;i++)if(i%2)x+=i;elsey+=i;printf("x=%d\n",x);printf("y=%d\n",y);}5.#include<stdio.h>main(){float x,y;printf("input x:");scanf("%f",&x);for (;x>=0;){if(x>0&&x<100){y=3*x+1;printf("%f",y);}else if(x>=100){y=x*x-1;printf("%f",y);}else{printf("thank you bey !");break;}scanf("%f",&x);}}6.#include<stdio.h>main(){int n,i;double t,sum;printf("请输入 n 的值\n");scanf("%d",&n);sum=2;i=1;t=2;