# data[].attributes.body
float fC,fS=0.0;
int i=1;
while(i<=12)
{
printf("请输入第%d个月的燃气费",i);
scanf("%f",&fC);
fS=fS+fC;
i++;
}
printf("燃气的费用为%.1f",fS);
system("pause");
return 0;

# data[].attributes.headline
float fcost;     int a=1;     while(a<=12)     {      printf("请输入第%d个月煤气费用\n",a);     scanf("%f",&fcost);     printf("第%d个月煤气费用为%f\n",a,fcost);     a++;     }	system("pause");	return 0;

# data[].attributes.subject
float fcost;     int a=1;     while(a<=12)     {      printf("请输入第%d个月煤气费用\n",a);     scanf("%f",&fcost);     printf("第%d个月煤气费用为%f\n",a,fcost);     a++;     }	system("pause");	return 0;

# data[].attributes.body
陈洪宇.0

# data[].attributes.headline
#include #include int main(){	float cost,k=0;    int i=1;    while(i<=12)    {    printf("第%d月的煤气费用:\n",i);    scanf("%f",&cost);    printf("第%d月的煤气费用%0.1f\n",i,cost);   k+=cost;    i++;    }     printf("煤气费用%0.1f",k);	system("pause");	return 0;}覃炳苍（2）

# data[].attributes.subject
#include #include int main(){	float cost,k=0;    int i=1;    while(i<=12)    {    printf("第%d月的煤气费用:\n",i);    scanf("%f",&cost);    printf("第%d月的煤气费用%0.1f\n",i,cost);   k+=cost;    i++;    }     printf("煤气费用%0.1f",k);	system("pause");	return 0;}覃炳苍（2）

# data[].attributes.body
int i,j,e;//爱心
int a;
long time;
for(i=1,a=I;i<I/2;i++,a--)
{
for(j=(int) ( I-sqrt(I*I-(a-i)*(a-i)) );j>0;j--)
printf(" ");
for(e=1;e<=2*sqrt(I*I-(a-i)*(a-i));e++)
printf("\3");
for(j=(int)
( 2*(    I-sqrt(I*I-(a-i)*(a-i)) ) );j>0;j--)
printf(" ");
for(    e=1;e<=2*sqrt(I*I-(a-i)*(a-i)); e++)
printf("\3");
printf("\n"); }
for(i=1;i<80;i++)
{
if(i==25)
{
printf("     我爱                     ");
i+=30;
}
printf("\3");
}
printf("\n");
for(i=1;i<=R/2;i++)
{
if(i%2||i%3)
continue;
for(j=(int) ( R-sqrt(R*R-i*i) );j>0;j--)
printf(" ");
for(e=1;e<=2*( sqrt(R*R-i*i) - (R-2*I) );e++)
printf("\3");
printf("\n");//爱心结尾

}

while(time)//变色代码
{
printf("  我");
printf("喜");
printf("欢");
printf("你");

system("color b");
for(time=0;time<99999999;time++); system("color a");
for(time=0;time<99999999;time++); system("color b");
for(time=0;time<99999999;time++); system("color c");
for(time=0;time<99999999;time++); system("color d");
for(time=0;time<99999999;time++); system("color e");
for(time=0;time<99999999;time++); system("color f");
}
system("pause");

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
//输入并输出12个月的燃气费
float fC,s;
int i=1;

while(i<=12)
{
printf("请输入第%d个月的燃气费",i);
scanf("%f",&fC);
s=s+fC;
i++;
}
printf("%f",s);
system("pause");
return 0;
}

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
float a,b=0.0;
int i=1;
while(i<=12)
{
printf("请输入第%d个月的燃气费",i);
scanf("%f",&a);
i++;
printf("%0.1f",a,a,a,a,a,a,a,a,a,a,a,a);
}
system("pause");
return 0;
}

# data[].attributes.body
//输入并输出12个月的燃气费
float fCost,fSum=0;
int i=1;
while(i<=12)
{
printf("请输入第一到第十二个月的燃气费：");
scanf("%f",&fCost);
fSum=fSum+fCost;
i++;
}
printf("%0.1f",fSum);
system("pause");
return 0;

# data[].attributes.headline
{	//输入并输出12个月的燃气费    float fCost,i=0.0;    int a=1;    printf("请依次输入每个月的燃气费：");    while(a<=12)    {        scanf("%f",&fCost);    i=i+fCost;    a++;    }    printf("一年煤气费用的总和为%0.1f",i);	system("pause");	return 0;}            张雅萱

# data[].attributes.subject
{	//输入并输出12个月的燃气费    float fCost,i=0.0;    int a=1;    printf("请依次输入每个月的燃气费：");    while(a<=12)    {        scanf("%f",&fCost);    i=i+fCost;    a++;    }    printf("一年煤气费用的总和为%0.1f",i);	system("pause");	return 0;}            张雅萱

# data[].attributes.headline
//输入输出12个月燃气费    float fcost;    int z=1;x=0.0    while(z<=12)    {    scanf("%f",&fcost);    fcost=x+fcost;    z++;    }    printf("\n用户一年煤气费用总和为%d",z);

# data[].attributes.subject
//输入输出12个月燃气费    float fcost;    int z=1;x=0.0    while(z<=12)    {    scanf("%f",&fcost);    fcost=x+fcost;    z++;    }    printf("\n用户一年煤气费用总和为%d",z);

# data[].attributes.body
李瑞

# data[].attributes.headline
//输入并输出12个月的燃气费    float fCost;    int i=1;    while(i<=12)    {    printf("请输入该月的燃气费：");    scanf("%f",&fCost);    i++;     }	system("pause");	return 0;

# data[].attributes.subject
//输入并输出12个月的燃气费    float fCost;    int i=1;    while(i<=12)    {    printf("请输入该月的燃气费：");    scanf("%f",&fCost);    i++;     }	system("pause");	return 0;

# data[].attributes.body
卫乐华

# data[].attributes.body
float fCost;
printf("请输入一月的燃气用量：\n");
scanf("%f",&fCost);
printf("一月的燃气费为%0.1f\n",fCost);
printf("请输入二月的燃气用量：\n");
scanf("%f",&fCost);
printf("二月的燃气费为%0.1f\n",fCost);
printf("请输入三月的燃气用量：\n");
scanf("%f",&fCost);
printf("三月的燃气费为%0.1f\n",fCost);
printf("请输入四月的燃气用量：\n");
scanf("%f",&fCost);
printf("四月的燃气费为%0.1f\n",fCost);
printf("请输入五月的燃气用量：\n");
scanf("%f",&fCost);
printf("五月的燃气费为%0.1f\n",fCost);
printf("请输入六月的燃气用量：\n");
scanf("%f",&fCost);
printf("六月的燃气费为%0.1f\n",fCost);
printf("请输入七月的燃气用量：\n");
scanf("%f",&fCost);
printf("七月的燃气费为%0.1f\n",fCost);
printf("请输入八月的燃气用量：\n");
scanf("%f",&fCost);
printf("八月的燃气费为%0.1f\n",fCost);
printf("请输入九月的燃气用量：\n");
scanf("%f",&fCost);
printf("九月的燃气费为%0.1f\n",fCost);
printf("请输入十月的燃气用量：\n");
scanf("%f",&fCost);
printf("十月的燃气费为%0.1f\n",fCost);
printf("请输入十一月的燃气用量：\n");
scanf("%f",&fCost);
printf("十一月的燃气费为%0.1f\n",fCost);
printf("请输入十二月的燃气用量：\n");
scanf("%f",&fCost);
printf("十二月的燃气费为%0.1f\n",fCost);

system("pause");
return 0;
}

# data[].attributes.body
//输入并输出12个月的燃气费
float fCost;
printf("请输入第一个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第二个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第三个月的燃气费：");
printf("%f",fCost);
printf("请输入第四个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第五个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第六个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第七个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第八个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第九个月的燃气费：");
scanf("%f",&fCost);
printf("%0.1f\n",fCost);
printf("请输入第十个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第十一个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第十二个月的燃气费：");

# data[].attributes.headline
#include #include int main(){	//输入并输出12个月的燃气费    float fCost,y;    int i=1;    printf("请依次输入十二个月的燃气费：");    while(i<=12)    {    scanf("%f",&fCost);    y=fCost+y;    i++;    }    printf("您这十二个月的总费用是：%f",y);

# data[].attributes.subject
#include #include int main(){	//输入并输出12个月的燃气费    float fCost,y;    int i=1;    printf("请依次输入十二个月的燃气费：");    while(i<=12)    {    scanf("%f",&fCost);    y=fCost+y;    i++;    }    printf("您这十二个月的总费用是：%f",y);

# data[].attributes.body
王佳乐

# data[].attributes.body
printf("这是一个神奇的代码它可以得出你从1月到12月的燃气费\n如果你想知道\n请输入\n我很帅\n得出结果\n");
scanf("我很帅");
printf("鉴定完毕你自恋的要死\n");
printf("请输入第一个月到12月的燃气费：");

//输入并输出12个月的燃气费
float cost,sun=0.0;
int i=1;
while(i<=12)
{
scanf("%f",&cost);

sun=sun+cost;
i++;

}
printf("\n从1月到12月的燃气费是%0.1f",sun);

# data[].attributes.headline
#include #include int main(){    float fCost,fSum=0.0;    int a=1;    while(a<=12)   {    printf("请输入一到十二月的燃气费：");        scanf("%f",&fCost);        fSum=fSum+fCost;        a++;   }    printf("%f",fSum);	system("pause");	return 0;}常莉

# data[].attributes.subject
#include #include int main(){    float fCost,fSum=0.0;    int a=1;    while(a<=12)   {    printf("请输入一到十二月的燃气费：");        scanf("%f",&fCost);        fSum=fSum+fCost;        a++;   }    printf("%f",fSum);	system("pause");	return 0;}常莉

# data[].attributes.headline
#include #include int main(){	//输入并输出12个月的燃气费    float fCost;    int a=1;    while(a<=12)    {    printf("这个月的燃气费是：");    scanf("%f",&fCost);    a++;    }	system("pause");	return 0;}

# data[].attributes.subject
#include #include int main(){	//输入并输出12个月的燃气费    float fCost;    int a=1;    while(a<=12)    {    printf("这个月的燃气费是：");    scanf("%f",&fCost);    a++;    }	system("pause");	return 0;}

# data[].attributes.body
张明洋

# data[].attributes.headline
#include void main(){	//输入并输出12个月的燃气费    float fCost,fSum=0.0;    int i=1;        while(i<=12)    {      scanf("%f",&fCost);      fSum=fSum+fCost;      i++;    }       printf("%0.1f",fSum);	system("pause");	return 0;}

# data[].attributes.subject
#include void main(){	//输入并输出12个月的燃气费    float fCost,fSum=0.0;    int i=1;        while(i<=12)    {      scanf("%f",&fCost);      fSum=fSum+fCost;      i++;    }       printf("%0.1f",fSum);	system("pause");	return 0;}

# data[].attributes.body
张清博

# data[].attributes.headline
#include #include int main(){	//输入并输出12个月的燃气费    float a,b,c,d,e,f,g,h,i,j,k,l;    printf("请输入第一个月的燃气费：");    scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);    printf("第一个月的燃气费为%0.1f",a);    printf("第二个月的燃气费为%0.1f",b);    printf("第三个月的燃气费为%0.1f",c);    printf("第四个月的燃气费为%0.1f",d);    printf("第五个月的燃气费为%0.1f",e);    printf("第六个月的燃气费为%0.1f",f);    printf("第七个月的燃气费为%0.1f",g);    printf("第八个月的燃气费为%0.1f",h);    printf("第九个月的燃气费为%0.1f",i);    printf("第十个月的燃气费为%0.1f",j);    printf("第十一个月的燃气费为%0.1f",k);    printf("第十二个月的燃气费为%0.1f",l);	system("pause");	return 0;}

# data[].attributes.subject
#include #include int main(){	//输入并输出12个月的燃气费    float a,b,c,d,e,f,g,h,i,j,k,l;    printf("请输入第一个月的燃气费：");    scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);    printf("第一个月的燃气费为%0.1f",a);    printf("第二个月的燃气费为%0.1f",b);    printf("第三个月的燃气费为%0.1f",c);    printf("第四个月的燃气费为%0.1f",d);    printf("第五个月的燃气费为%0.1f",e);    printf("第六个月的燃气费为%0.1f",f);    printf("第七个月的燃气费为%0.1f",g);    printf("第八个月的燃气费为%0.1f",h);    printf("第九个月的燃气费为%0.1f",i);    printf("第十个月的燃气费为%0.1f",j);    printf("第十一个月的燃气费为%0.1f",k);    printf("第十二个月的燃气费为%0.1f",l);	system("pause");	return 0;}

# data[].attributes.body
吴泽民

# data[].attributes.headline
#include #include int main(){	float cost,sum=0;    int i;    for(i=1;i<=12;i++)    {    printf("第%d月的燃气费:\n",i);    scanf("%f",&cost);   printf("这个月的煤气费用为%0.1f\n",cost);    }	system("pause");	return 0;}覃炳苍

# data[].attributes.subject
#include #include int main(){	float cost,sum=0;    int i;    for(i=1;i<=12;i++)    {    printf("第%d月的燃气费:\n",i);    scanf("%f",&cost);   printf("这个月的煤气费用为%0.1f\n",cost);    }	system("pause");	return 0;}覃炳苍

# data[].attributes.headline
#include #include int main(){	float cost,sum0;    int i;    for(i=1;i<=12;i++)    {     printf("第%d月的燃气费:\n",i);     scanf("%f",&cost);     printf("这个月的煤气费用为%0.1f\n",cost);    }	system("pause");	return 0;}刘元

# data[].attributes.subject
#include #include int main(){	float cost,sum0;    int i;    for(i=1;i<=12;i++)    {     printf("第%d月的燃气费:\n",i);     scanf("%f",&cost);     printf("这个月的煤气费用为%0.1f\n",cost);    }	system("pause");	return 0;}刘元

# data[].attributes.headline
#include #include int main(){	//输入并输出12个月的燃气费    float fCost;    int i=1;    while(i<=12)    {       printf("请输入这个月的燃气费：");       scanf("%f",&fCost);       i++;    }   	system("pause");	return 0;}

# data[].attributes.subject
#include #include int main(){	//输入并输出12个月的燃气费    float fCost;    int i=1;    while(i<=12)    {       printf("请输入这个月的燃气费：");       scanf("%f",&fCost);       i++;    }   	system("pause");	return 0;}

# data[].attributes.body
牛姣洁

# data[].attributes.body
{
//输入并输出12个月的燃气费
float fCost,fSum=0;
int a=1;
while(a<=12)
{
printf("请输入第一到十二个月的燃气费：");
scanf("%f",&fCost);
fSum=fSum+fCost;
a++;
}
printf("%0.1f",fSum);
system("pause");
return 0;
}

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
//输入并输出12个月的燃气费
float fCost,fSum=0.0;
int i=1;
while(i<=12)
{
scanf("%f",&fCost);
fSum=fSum+fCost;
i++;
}
printf("%0.1f",fSum);
scanf("%f",&fCost);
system("pause");
return 0;
}

# data[].attributes.headline
17通信物联网赵航的作业

# data[].attributes.subject
17通信物联网赵航的作业

# data[].attributes.body
printf("分别输入12个月的煤气费用\n");
float fCost,fSum=0.0;
int i=1;
while(i<=12)
{
scanf("%f",&fCost);

fSum=fSum+fCost;
i++;
}
printf("煤气的费用为%.1f",fSum);
system("pause");
return 0;

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
//输入并输出12个月的燃气费
float a,b,c,d,e,f,g,h,i,j,k,l;
printf("请输入第十二个月的燃气费：");
scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);
printf("第一个月的燃气费为%0.1f",a);
printf("第二个月的燃气费为%0.1f",b);
printf("第三个月的燃气费为%0.1f",c);
printf("第四个月的燃气费为%0.1f",d);
printf("第五个月的燃气费为%0.1f",e);
printf("第六个月的燃气费为%0.1f",f);
printf("第七个月的燃气费为%0.1f",g);
printf("第八个月的燃气费为%0.1f",h);
printf("第九个月的燃气费为%0.1f",i);
printf("第十个月的燃气费为%0.1f",j);
printf("第十一个月的燃气费为%0.1f",k);
printf("第十二个月的燃气费为%0.1f",l);
system("pause");
return 0;
}

# data[].attributes.headline
#include #include int main(){	 float fCost,fsum;    int a=1;    printf("请输入个月煤气费用：");    while(a<=12)    {    scanf("%f",&fCost);    fsum=fsum+fCost;    a++;    }     printf("请输出个月的燃气费用总和：%0.1f",fsum);	system("pause");	return 0;}

# data[].attributes.subject
#include #include int main(){	 float fCost,fsum;    int a=1;    printf("请输入个月煤气费用：");    while(a<=12)    {    scanf("%f",&fCost);    fsum=fsum+fCost;    a++;    }     printf("请输出个月的燃气费用总和：%0.1f",fsum);	system("pause");	return 0;}

# data[].attributes.body
冯玉莹

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
//输入并输出12个月的燃气费
float fCost,y;
int i=1;
printf("请依次输入十二个月的燃气费：");
while(i<=12)
{
scanf("%f",&fCost);
y=fCost+y;
i++;
}
printf("您这十二个月的总费用是：%f",y);

system("pause");
return 0;
}

# data[].attributes.body
float fCost;

printf("请输入第一个月的燃气费：");
scanf("%f",&fCost);
printf("一月的燃气费为%0.1f\n",fCost);
printf("请输入第二个月的燃气费：");
scanf("%f",&fCost);
printf("二月的燃气费为%0.1f\n",fCost);
printf("请输入第三个月的燃气费：");
scanf("%f",&fCost);
printf("三月的燃气费为%0.1f\n",fCost);
printf("请输入第四个月的燃气费：");
scanf("%f",&fCost);
printf("四月的燃气费为%0.1f\n",fCost);
printf("请输入第五个月的燃气费：");
scanf("%f",&fCost);
printf("五月的燃气费为%0.1f\n",fCost);
printf("请输入第六个月的燃气费：");
scanf("%f",&fCost);
printf("六月的燃气费为%0.1f\n",fCost);
printf("请输入第七个月的燃气费：");
scanf("%f",&fCost);
printf("七月的燃气费为%0.1f\n",fCost);
printf("请输入第八个月的燃气费：");
scanf("%f",&fCost);
printf("八月的燃气费为%0.1f\n",fCost);
printf("请输入第九个月的燃气费：");
scanf("%f",&fCost);
printf("九月的燃气费为%0.1f\n",fCost);
printf("请输入第十个月的燃气费：");
scanf("%f",&fCost);
printf("十月的燃气费为%0.1f\n",fCost);
printf("请输入第十一个月的燃气费：");
scanf("%f",&fCost);
printf("十一月的燃气费为%0.1f\n",fCost);
printf("请输入第十二个月的燃气费：");
scanf("%f",&fCost);
printf("十二月的燃气费为%0.1f\n",fCost);

system("pause");
return 0;

# data[].attributes.headline
//输入并输出12个月的燃气费&

# data[].attributes.body
//输入并输出12个月的燃气费
float fCost;
printf("请输入第一个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第二个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第三个月的燃气费：");
printf("%f",fCost);
printf("请输入第四个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第五个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第六个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第七个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第八个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第九个月的燃气费：");
scanf("%f",&fCost);
printf("%0.1f\n",fCost);
printf("请输入第十个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第十一个月的燃气费：");
scanf("%f",&fCost);
printf("请输入第十二个月的燃气费：");
scanf("%f",&fCost);李文静

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
//输入并输出12个月的燃气费

float fCost;
int i=1;
/*方法1
for(i=1;i<=12;i++)
{
printf("请输入第%d个月的燃气费：\n",i);
scanf("%f",&fCost);
printf("第%d月的煤气为%0.1f\n",i,fCost);
}*/
/*方法2
while(i<=12)
{ printf("请输入第%d个月的燃气费：\n",i);
scanf("%f",&fCost);
printf("第%d月的煤气为%0.1f\n",i,fCost);
i++;
}*/

system("pause");
return 0;
}

# data[].attributes.body
#include #include int main(){ //输入并输出12个月的燃气费    float a,b,c,d,e,f,g,h,i,j,k,l;    printf("请输入各个个月的燃气费：");    scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);    printf("第一个月所需费用为：%0.1f\n",a);    printf("第二个月所需费用为：%0.1f\n",b);    printf("第三个月所需费用为：%0.1f\n",c);    printf("第四个月所需费用为：%0.1f\n",d);    printf("第五个月所需费用为：%0.1f\n",e);    printf("第六个月所需费用为：%0.1f\n",f);    printf("第七个月所需费用为：%0.1f\n",g);    printf("第八个月所需费用为：%0.1f\n",h);    printf("第九个月所需费用为：%0.1f\n",i);    printf("第十个月所需费用为：%0.1f\n",j);    printf("第十一个月所需费用为：%0.1f\n",k);    printf("第十二个月所需费用为：%0.1f\n",l);

# data[].attributes.body
float a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12;

printf("请依次输入12个月的燃气费：");
scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a1,&a2,&a3,&a4,&a5,&a6,&a7,&a8,&a9,&a10,&a11,&a12);
printf("第一个月所需费用为：%0.1f\n",a1);
printf("第二个月所需费用为：%0.1f\n",a2);
printf("第三个月所需费用为：%0.1f\n",a3);
printf("第四个月所需费用为：%0.1f\n",a4);
printf("第五个月所需费用为：%0.1f\n",a5);
printf("第六个月所需费用为：%0.1f\n",a6);
printf("第七个月所需费用为：%0.1f\n",a7);
printf("第八个月所需费用为：%0.1f\n",a8);
printf("第九个月所需费用为：%0.1f\n",a9);
printf("第十个月所需费用为：%0.1f\n",a10);
printf("第十一个月所需费用为：%0.1f\n",a11);
printf("第十二个月所需费用为：%0.1f\n",a12);

printf("总费用为：%0.0f",a1+a2+a3+a4+a5+a6+a7+a8+a9+a10+a11+a12);

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
//输入并输出12个月的燃气费
float fCost,y;
int i=1;
printf("请依次输入十二个月的燃气费：");
while(i<=12)
{
scanf("%f",&fCost);
y=fCost+y;
i++;
}
printf("您这十二个月的总费用是：%f",y);

system("pause");
return 0;
}

# data[].attributes.body
float a,b=0.0;
int c=1;
while(c<=12)
{
scanf("%f",&a);
b=b+a;
c++;
}
printf("煤气的总和为0.2f",b);
system("pause");
return 0;

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("请输入燃气使用量");
float fCost,fSum=0.0;
int i=1;
while(i<=12)
{
scanf("%f",&fCost);
fSum=fSum+fCost;
i++;
}
printf("燃气的费用为%.1f",fSum);
system("pause");
return 0;
向凯

# data[].attributes.headline
#include #include int main(){	//输入并输出12个月的燃气费    float fCost;    int x;    x=1;    while(x<=12)   {     printf("请输入这个月的燃气费：");     scanf("%f",&fCost);     x++;   } printf("12个月总的燃气费为：%0.3f",fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost);      	system("pause");	return 0;}                 l李宛蓉

# data[].attributes.subject
#include #include int main(){	//输入并输出12个月的燃气费    float fCost;    int x;    x=1;    while(x<=12)   {     printf("请输入这个月的燃气费：");     scanf("%f",&fCost);     x++;   } printf("12个月总的燃气费为：%0.3f",fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost+fCost);      	system("pause");	return 0;}                 l李宛蓉

# data[].attributes.headline
//输入并输出12个月的燃气费    float fCost,x=0.0;     int i=1;     while(i<=12)     {    scanf("%f",&fCost);    x=x+fCost;    i++;     }    printf("\n一个住户一年煤气费用的总和为:%0.1f",x);	system("pause");	return 0;}

# data[].attributes.subject
//输入并输出12个月的燃气费    float fCost,x=0.0;     int i=1;     while(i<=12)     {    scanf("%f",&fCost);    x=x+fCost;    i++;     }    printf("\n一个住户一年煤气费用的总和为:%0.1f",x);	system("pause");	return 0;}

# data[].attributes.body
赵玉寅

# data[].attributes.headline
	//输入并输出12个月的燃气费    float fCost;    int i=1;      printf("请输入每一个月的燃气费：");    while(i<=12)    {    scanf("%f",&fCost);    i++;    printf("煤气费为%0.1f\n",fCost);    }	system("pause");	return 0;

# data[].attributes.subject
	//输入并输出12个月的燃气费    float fCost;    int i=1;      printf("请输入每一个月的燃气费：");    while(i<=12)    {    scanf("%f",&fCost);    i++;    printf("煤气费为%0.1f\n",fCost);    }	system("pause");	return 0;

# data[].attributes.body
纽梦瑶

# data[].attributes.body
 float a,b,c,d,e,f,g,h,i,j,k,l;
    printf("请输入十二个月的燃气费：");
    scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);
    printf("第一个月的燃气费为%0.1f\n",a);
     printf("第二个月的燃气费为%0.1\n",b);
      printf("第三个月的燃气费为%0.1f\n",c);
       printf("第四个月的燃气费为%0.1f\n",d);
        printf("第五个月的燃气费为%0.1f\n",e);
         printf("第六个月的燃气费为%0.1f\n",f);
           printf("第七个月的燃气费为%0.1f\n",g);
            printf("第八个月的燃气费为%0.1f\n",h);
             printf("第九个月的燃气费为%0.1f\n",i);
              printf("第十个月的燃气费为%0.1f\n",j);
               printf("第十一个月的燃气费为%0.1f\n",k); 
                printf("第十二个月的燃气费为%0.1f\n",l);

# data[].attributes.body
//输入并输出12个月的燃气费
float fCost,x=0.0;
int i=1；
while(i<=12)
{
printf("请输入%d个月的燃气费：",i);
scanf("%f",&fCost);
x=x+fCost;
i++;
}
printf("\n一个住户一年燃气费用的总和为:%0.1f",x);
system("pause");
return 0;
}

# data[].attributes.headline
#include #include int main(){	//输入并输出12个月的燃气费    float a,b,c,d,e,f,g,h,i,j,k,l;    printf("请输入各个个月的燃气费：");    scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);    printf("第一个月所需费用为：%0.1f\n",a);    printf("第二个月所需费用为：%0.1f\n",b);    printf("第三个月所需费用为：%0.1f\n",c);    printf("第四个月所需费用为：%0.1f\n",d);    printf("第五个月所需费用为：%0.1f\n",e);    printf("第六个月所需费用为：%0.1f\n",f);    printf("第七个月所需费用为：%0.1f\n",g);    printf("第八个月所需费用为：%0.1f\n",h);    printf("第九个月所需费用为：%0.1f\n",i);    printf("第十个月所需费用为：%0.1f\n",j);    printf("第十一个月所需费用为：%0.1f\n",k);    printf("第十二个月所需费用为：%0.1f\n",l);	system("pause");	return 0;}

# data[].attributes.subject
#include #include int main(){	//输入并输出12个月的燃气费    float a,b,c,d,e,f,g,h,i,j,k,l;    printf("请输入各个个月的燃气费：");    scanf("%f%f%f%f%f%f%f%f%f%f%f%f",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);    printf("第一个月所需费用为：%0.1f\n",a);    printf("第二个月所需费用为：%0.1f\n",b);    printf("第三个月所需费用为：%0.1f\n",c);    printf("第四个月所需费用为：%0.1f\n",d);    printf("第五个月所需费用为：%0.1f\n",e);    printf("第六个月所需费用为：%0.1f\n",f);    printf("第七个月所需费用为：%0.1f\n",g);    printf("第八个月所需费用为：%0.1f\n",h);    printf("第九个月所需费用为：%0.1f\n",i);    printf("第十个月所需费用为：%0.1f\n",j);    printf("第十一个月所需费用为：%0.1f\n",k);    printf("第十二个月所需费用为：%0.1f\n",l);	system("pause");	return 0;}

# data[].attributes.body
杨振天作业 1

# data[].attributes.body
void main()
{
int x,n=0,k=1,i,a[12];
printf("Enter a int number:\n");
scanf("%d",&x);
for(i=0;i<12;i++)
{
n=x%2;
x=x/2;
a[15-i]=n;
}
for(i=0;i<12;i++)
printf("%d",a[i]);
system("pause");
return 0;

# data[].attributes.headline
#include #include int main(){	float c,s=0.0;    int x=1;    printf("请从键盘中获取数据：");    while(x<=12)    {		scanf("%f",&c);        s=s+c;        x++;    }    printf("最终输出:%0.1f",s);	system("pause");	return 0;}

# data[].attributes.subject
#include #include int main(){	float c,s=0.0;    int x=1;    printf("请从键盘中获取数据：");    while(x<=12)    {		scanf("%f",&c);        s=s+c;        x++;    }    printf("最终输出:%0.1f",s);	system("pause");	return 0;}

# data[].attributes.body
杨振天作业 2

# data[].attributes.headline
 //输入并输出12个月的燃气费    float fCost;    int i;    i=1;    while(i<=12)    {    printf("请输入这个月的燃气费：");    scanf("%f",&fCost);    i++;    }    system("pause");	return 0;

# data[].attributes.subject
 //输入并输出12个月的燃气费    float fCost;    int i;    i=1;    while(i<=12)    {    printf("请输入这个月的燃气费：");    scanf("%f",&fCost);    i++;    }    system("pause");	return 0;

# data[].attributes.body
王鑫

# data[].attributes.headline
//输入并输出12个月的燃气费    float fCost,y=0.0;    int x=1;    printf("请依次输入12个月的燃气费：");       while(x<=12)    {    scanf("%fCost",&fCost);    y=y+fCost;    x++;    }    printf("一年的燃气费为%0.2f",y);	system("pause");	return 0;}

# data[].attributes.subject
//输入并输出12个月的燃气费    float fCost,y=0.0;    int x=1;    printf("请依次输入12个月的燃气费：");       while(x<=12)    {    scanf("%fCost",&fCost);    y=y+fCost;    x++;    }    printf("一年的燃气费为%0.2f",y);	system("pause");	return 0;}

# data[].attributes.body
任鑫鑫