Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
279 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main() {
    setlocale(LC_ALL, "Russian");
    float y, x, b, k, N;
    cin >> k >> b;
    cin >> N;
    for (int i = 0; i < N; i++){
        cin >> y; // y(i) = k*x(i)+b
        cout << "x = " << y / k - b << endl;
    }
}