C++ 信奥刷题
运用C++编程实现1.输入两个数123和45,计算这两个数的加减乘除。2.已知圆的半径为5,圆周率为3.14,计算圆的周长和面积。
#include <iostream>
using namespace std;
int main()
{
int a = 5;
float b = 3.14;
int x,y;
X = a*b*a;
y=b*(a*2);
cout<<"圆的面积x值"<< x <<std::end1;
cout<<"圆的周长y值"< y <<std::end1;
return 0;
}