Ciklas struktura kaip suvedama

PHOTO EMBED

Mon Nov 27 2023 15:21:29 GMT+0000 (Coordinated Universal Time)

Saved by @AdomsNavicki

#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;
}
content_copyCOPY