#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x, y;
cout << "y = 2x +sin2x\nenter x: ";
cin >> x;
y = 2 * x + sin(2*x)
cout << "y = " << y << endl;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x, y;
cout << "y = 2x +sin2x\nenter x: ";
cin >> x;
y = 2 * x + sin(2*x)
cout << "y = " << y << endl;
}