daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top