Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <iostream>

#include <math.h>

using namespace std;

int main()
{
float r1=0;
float x=-1.1;
float a=1.71;
float b=0;
float y=0;
cin>>b;
cin>>y;

r1=(sqrt(x*a+3*(pow(a ,4) )*x*x)/(cos(a*y)+sin(x)+7) );


cout<<"r1="<<r1<<endl;

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
float x,n;
float G=0;
cout<<"n=";
cin>>n;
cout<<"x=";
cin>>x;

G=(pow(x,n)+pow(2*x,n-1)+pow(3*x,n)-2+(n-2)*x*x+(n-1)*x+n);

cout<<"G="<<G<<endl;

return 0;

You might also like