最新回答 / 慕虎5138567
#include<stdio.h>#define POCKETMONEY "10"int main(){printf("小明今天又得到%s元零花钱",POCKETMONEY);return 0;}//~~~~
2021-08-01
最新回答 / 慕移动9181930
http://biz.finance.sina.com.cn/zjzt/more.php?lytype=ipoly_hyxdly&title=%D5%E6%C8%CB%B0%D9%BC%D2%C0%D6%C6%C6%BD%E2%B9%D9%CD%F8XS686%A3%AE%A3%C3%A3%CF%A3%CD
2021-07-28
最赞回答 / weixin_慕少4413036
#include <stdio.h>int main(){ int age = 15; int height = 162; float weight = 82.5; char isfat = 'y'; printf("年龄:%d 岁\n", age); printf("身高:%d CM\n", height); printf("体重:%f KG\n", weight); printf("是否属于肥胖儿童:%c\n", i...
2021-07-27
#include <stdio.h>
int age( int n)
{
int num ; //定义年龄
if(n==1)
{
num = 10; //递归结束条件
}
else
{
num= age(n-1) + 2 ; //这里是不应该用递归呢?
}
return num;
}
int main()
{
printf("第5人年龄是%d岁。\n", age(5));
return 0;
}
int age( int n)
{
int num ; //定义年龄
if(n==1)
{
num = 10; //递归结束条件
}
else
{
num= age(n-1) + 2 ; //这里是不应该用递归呢?
}
return num;
}
int main()
{
printf("第5人年龄是%d岁。\n", age(5));
return 0;
}
2021-07-27