Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
350 B
0
Indexable
Never
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
using namespace std;
float func(float a, float b) {
	return a * a - 5 * b;
}
int main() {
	ifstream in("func.txt");
	ofstream out("result.txt");

	float a, b;
	int c;
	in >> c;
	for (int i = 0; i < c; i++){
		in >> a >> b;
		out << func(a, b) << '\n';
	}
}