21天养成良好习惯-2
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d,e;
float f;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
f=(b+c+d)/3.00;
printf("%.2f",f);
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,w;
float h;
printf(“Input weight, height:\n”);
scanf("%d,%d",&a,&b);
w=a*2,h=(float)b/100;
printf(“weight=%d\n”,w);
printf(“height=%.2f\n”,h);
printf(“t=%.2f\n”,a/h/h);
return 0;
}