#include <iostream>
#include <math.h>
#define PI 3.14159
int main()
{
using namespace std;
float a,b,result;
cin>>a>>b;
float result=a+b;
cout<<"Slozhenie a+b = "<<result<<endl;
result=a-b;
cout<<"Raznost a-b ="<<result<<endl;
result=a*b;
cout<<"a*b ="<<result<<endl;
result=a/b;
cout<<"a/b ="<<result<<endl;
result=sin(a*PI/180); //для а в градусах
cout<<"sin(a gradusov) ="<<result<<endl;
result=sin(b); //для b радиан
cout<<"sin(b radian) ="<<result<<endl;
result=sqrt(a*b); //квадратный корень перемножения а*б
cout<<"sqrt(a*b) ="<<result<<endl;
return 0;
}
#include <iostream>
#include <math.h>
#define PI 3.14159
int main()
{
using namespace std;
float a,b,result;
cin>>a>>b;
float result=a+b;
cout<<"Slozhenie a+b = "<<result<<endl;
result=a-b;
cout<<"Raznost a-b ="<<result<<endl;
result=a*b;
cout<<"a*b ="<<result<<endl;
result=a/b;
cout<<"a/b ="<<result<<endl;
result=sin(a*PI/180); //для а в градусах
cout<<"sin(a gradusov) ="<<result<<endl;
result=sin(b); //для b радиан
cout<<"sin(b radian) ="<<result<<endl;
result=sqrt(a*b); //квадратный корень перемножения а*б
cout<<"sqrt(a*b) ="<<result<<endl;
return 0;
}