#include<stdio.h>
int main(void)
{
int a;
int b;
int c;
scanf("%d %d", &a, &b);
c = a + b;
printf("%d",c);
}
2060 计算机输出
#include<stdio.h>
int main()
{
printf("Hello World!");
return 0;
}
2061 梯形面积
#include<stdio.h>
int main()
{
float h;
float s;
h = 150 * 2 / 15;
s = (15 + 25) * h / 2;
printf("%.2f",s);
return 0;
}
2062 电影票
#include<stdio.h>
int main(void)
{
int s;
int x;
scanf("%d", &x);
s = 10 * x;
printf("%d %d",x,s);
return 0;
}
2063 牛吃牧草
#include<stdio.h>
int main()
{
int a=1,b=1,c=1,d=0;//b为每天牧场生长的草量,a为牧场原有的草量,c为每头牛每天吃的草
//a+20b=15*20c
//a+10b=20*10c
//10b=100c
//b=10c
b = 10*c;
d = b / c;
printf("%d", b / c);
}