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;РelseР y+=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;