编写程序:学生参加了为期13天的徒步夏令营,已知学生晴天日行34千米,雨天日行20千米,有5个雨天,问学生累计行程是多少?
# include <stdio.h>
void main()
{
int a=13,b,t=0;
b=20*5+34*b;
t=20*5+34*b;
printf("%d\n",t);
}
编写程序:学生参加了为期13天的徒步夏令营,已知学生晴天日行34千米,雨天日行20千米,有5个雨天,问学生累计行程是多少?
# include <stdio.h>
void main()
{
int a=13,b,t=0;
b=20*5+34*b;
t=20*5+34*b;
printf("%d\n",t);
}