Untitled
unknown
plain_text
2 years ago
358 B
3
Indexable
#include <iostream> #include <string> #include <fstream> using namespace std; int funkcia(float a, float b) { float c = a * a - 5 * b; return c; } int main() { ifstream in("func.txt"); ofstream out("result.txt"); float a, b; float d; in >> d; for (int i = 0; i < d; i++) { in >> a >> b; out << funkcia(a, b) << endl; } }
Editor is loading...