Guest User

Untitled

a guest
Sep 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. double a,b,c,delta,pdelta;
  10. cout<<"Podaj liczbe a, b i c by obliczyc delte (pamietaj, ze wzor na delte to x=b^2-4ac)"<<endl;
  11. cout<<"Liczba a: "; cin>>a; cout<<"Liczba b: "; cin>>b; cout<<"Liczba c: "; cin>>c;
  12. delta=(pow(b,2)) - (4*a*c);
  13. pdelta=sqrt(delta);
  14. cout<<"Delta to "<<delta<<", a pierwiastek z delty to "<<pdelta<<endl;
  15. }
Add Comment
Please, Sign In to add comment