c语言作业

44 阅读1分钟



#include <stdio.h>
int main(){
	int s = 0;
	int i = 1;
	while(i <= 100){
		printf("%d \n",i);
		s = s + i;
		i+=2;
	} 
	printf("%d \n",s);
	return;
}


image.png