1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#include <iostream>
#include <cmath>
#include <math.h>
using namespace std;
int main() {
float F,O,I,L,A,B,C,D,E,G,J,H,K;
cout<<"F=";
cin>>F;
cout<<"O=";
cin>>O;
cout<<"I=";
cin>>I;
cout<<"L=";
cin>>L;
A=F*I;
B=F*L;
C=O*I;
D=O*L;
E=B+C;
G=-1*(O/F);
J=-1*(L/I);
H=((J+G)/2);
K=((F*H)+O)*((I*H)+L);
system("CLS");
cout<< A," X²+ ",E," X+ ",D;endl;
cout<<"X-Intercepts= ",J,",0";endl;
cout<<"X-Intercepts= ",G,",0";endl;
cout<<"Vertex=",H,",",K;
system("pause");
return 0;
}
|