Untitled

Anonymous
plain_text
03/05/2023 1:53 PM
440 B
19
Indexable
#include <iostream>
#include <fstream>
using namespace std;
int f(int a, int b) {
	return a * a - 5 * b;
}
int main()
{
	
	ifstream in("func.txt");
	ofstream out("result.txt");
	if (!in.is_open());
	int a;
	in >> a;
	for (int i = 0; i < a; i++)
	{
		int a, b;
		in >> a >> b;
		out << f(a,b) << endl;
	}
	
}
Editor is loading...