Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- double a,b,c,delta,pdelta;
- cout<<"Podaj liczbe a, b i c by obliczyc delte (pamietaj, ze wzor na delte to x=b^2-4ac)"<<endl;
- cout<<"Liczba a: "; cin>>a; cout<<"Liczba b: "; cin>>b; cout<<"Liczba c: "; cin>>c;
- delta=(pow(b,2)) - (4*a*c);
- pdelta=sqrt(delta);
- cout<<"Delta to "<<delta<<", a pierwiastek z delty to "<<pdelta<<endl;
- }
Add Comment
Please, Sign In to add comment