根据下面的流程图,采用C语言写出程序。
【正确答案】
采用C语言实现:
#include<stdio.h>
main()
{
int s=1;
int i;
for(i=1;i<=6;i=i+2)
s+=i*i;
printf("s=%d",s);
}
【答案解析】
提交答案
关闭