Untitled
unknown
plain_text
3 years ago
349 B
6
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");
int a, b;
int n;
in >> n;
for (int i = 0; i < n; i++)
{
in >> a >> b;
out << f(a,b) << endl;
}
}
Editor is loading...