Untitled
unknown
plain_text
2 years ago
322 B
3
Indexable
#include <fstream> #include <iostream> using namespace std; int f(int a, int b) { int rez; rez = a * a - 5 * b; return rez; } int main() { int n, a, b; ifstream in("funk.txt"); ofstream out("rez.txt"); in >> n; for (int i=0; i < n; i++) { in >> a; in >> b; out << f(a, b)<<endl; } }
Editor is loading...