Untitled

Anonymous
plain_text
03/05/2023 1:23 PM
480 B
18
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...