while类型
#include<stdio.h>#define nan 9
#define woman 10
int main(void)
{
int happy,good;
printf("what are you doing.\n");
happy=2;
while(happy<34)
{
happy=happy+1;
good=happy*nan+woman;
printf("%d %d.\n",happy,good);
}
printf("apple.\n");
return 0;
}
本人已自行解出
[此贴子已经被作者于2016-1-24 18:54编辑过]