Assalamualaikum wr.wb
hy guys, what's you guys. how are you today. i hope you always be better than yesterday.
maaf nih guys lagi sibuk2nya nih memuat laporan atau biasa disebut tugas
jadi nih blog jadinya kudet yah hehehe ( kurang upddate) tapi tenang karena saya selalu aktif kok heheeh.
ok i dont wanna waste your time, you"ve to see my program let's check this out :
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main(){
int x1;
int a;
int b;
int c;
double disk;
int x2;
cout<<"Input your's= ";
cin >> a;
cout<<"input your's= ";
cin >> b;
cout<<"input your's= ";
cin >> c;
disk =b*b-4*a*c;
if (disk>0)
{
x1 =-b/2*a;
x2 =x1;
}
else
{
if (disk==0)
{
x1 =(-b+sqrt(disk))/2*a;
x2 =(-b-sqrt(disk))/2*a;
}
else
{
cout << "Akar Imajinatier:" << endl; }
}
return 0;
}
dan berikut outputnya :
Rabu, 16 Maret 2016
kasus 3.3
dan berikut algoritma raptornya :
0 komentar:
Posting Komentar