实验4(上))
作者:互联网
#include "stdafx.h" #include "stdio.h" int main(int argc, char* argv[]) { double i,j,s; j=0; s=0; for(i=1;i<=50;j=20*i+2,s=s+j,i++); printf("%lf",s); return 0; }
#include "stdafx.h" #include "stdio.h" int main(int argc, char* argv[]) { double i,j,s; i=1; j=0; s=0; while(i<=50) { j=20*i+2; s=s+j; i++; } printf("%lf",s); return 0; }
标签:argc,stdafx,int,double,include,实验,main 来源: https://www.cnblogs.com/p201821440009/p/10819441.html