#include void main(){ int i = 0, sum = 0; for(i = 0; i < 100; i++) { if(i % 3 == 0) sum += i; } printf("sum:%d\n",sum);}
dim asumasum=0for i=1 to 100if mod(i/3)=0 thenasum=asum+iend ifnext imsgbox “总和是:”& asum