定义三个变量
输入两个变量
两数相加等于第三个变量
按照题目要求的格式输出三个变量
#include <stdio.h>
int main()
{
float x=3.21;
float y=3.21;
float c;
c = x + y;
printf("%0.2f",c);
return 0;
}
c++:
#include <cstdio>
int main(){
double a, b;
scanf("%lf%lf", &a, &b);
printf("%.2lf", a + b);
return 0;
}