while(条件表达式){循环体}
#include <stdio.h>
int main(){ int i=1,sum=0; while(i<6) { sum=sum+i*3; i++; } printf("苹果的总数是:%d",sum); return 0; }