#include <iostream>
using namespace std;
int main() {
cout << "X: ";
float x; cin >> x;
float y = 0;
y = 4*(x-3)*6-7*(x-3)*3+2;
cout << endl << "Y: " << y;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
cout << "X: ";
float x; cin >> x;
float y = 0;
y = 4*(x-3)*6-7*(x-3)*3+2;
cout << endl << "Y: " << y;
}