C语言解决猴子吃桃的问题的代码
下面代码是关于C语言解决猴子吃桃的问题的代码,希望对各位有一些好处。
#include "stdio.h"
#include "conio.h"
main()
{
int day,x1,x2;
day=9;
x2=1;
while(day>0)
{
x2=x1;
day--;
}
printf("the total is %dn",x1);
getch();
}
下面代码是关于C语言解决猴子吃桃的问题的代码,希望对各位有一些好处。
#include "stdio.h"
#include "conio.h"
main()
{
int day,x1,x2;
day=9;
x2=1;
while(day>0)
{
x2=x1;
day--;
}
printf("the total is %dn",x1);
getch();
}