#include#include#includeint main (){float a,b,c,d,x1,x2,re,im;cout<<" Cara cepat mencari nilai akar-akar persamaan kuadrat...Check it out!"cin>>a;cout<<" Masukkan nilai b : ";cin>>b;cout<<" Masukkan nilai c : ";cin>>c;//itung D dulud=b*b-4*a*c;//liat hasilnyaif (d>0){x1=(-b+sqrt(d))/(2*a);x2=(-b-sqrt(d))/(2*a);cout<<" x1 = "<cout<<" x2 = "<}elseif (d==0){x1=-b/(2*a);x2=x1;cout<<" Akar kembar cuy! ";cout<<" x1 = "<cout<<" x2 = "<}else //d<0{re=-b/(2*a);im=sqrt(fabs(d))/(2*a);cout<<" Akar bingung ";cout<<" x1 = "<cout<<" x2 = "<}cout<<" Dibuat oleh saya Tyas Istiqomah "<cout<<" Yang NIMnya 080810191 "<getch ();}triiimmmzzzz^^