Guest User

Untitled

a guest
Aug 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. float TForm1::Diskriminant(float a, float b, float c)
  2. {
  3.     if(((b*b)-(4*a*c))>0)
  4.         return((b*b)-(4*a*c));
  5.         else {ShowMessage("Diskriminant s těmito kořeny je záporny, tudiž rovnice nemá řešení!");
  6.               break;}
  7.     if(((b*b)-(4*a*c))==0)
  8.         return((b*b)-(4*a*c));
  9.     else ShowMessage("Diskriminant s těmito kořeny je záporny, tudiž rovnice nemá řešení!");
  10. }
Add Comment
Please, Sign In to add comment