Preview:
#include <fstream>
#include <iostream>

using namespace std;

int main() 
{
ifstream duom ("U1.txt");
int a,b,c;
duom>>a>>b>>c;
duom.close();
int x, y;
ofstream rez("U1rez.txt");
for(int x=-3; x<=3; x++)
{
    y=a*x*x+b*x+c;
    rez<<"Kai x="<<x<<", tai y="<<y<<endl;
}
rez.close();
return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter