0% found this document useful (0 votes)
668 views2 pages

Flowchart Rumus ABC

This flowchart shows the steps to solve a quadratic equation using the ABC formula. It first inputs values for the constants A, B, and C. It then calculates the square root term and uses it to calculate the solutions X1 and X2. Finally, it outputs the values of X1 and X2. The accompanying code segment shows how to declare variables, perform the calculations, and display the outputs to solve a quadratic equation using the ABC formula in code.

Uploaded by

Pandy Ma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
668 views2 pages

Flowchart Rumus ABC

This flowchart shows the steps to solve a quadratic equation using the ABC formula. It first inputs values for the constants A, B, and C. It then calculates the square root term and uses it to calculate the solutions X1 and X2. Finally, it outputs the values of X1 and X2. The accompanying code segment shows how to declare variables, perform the calculations, and display the outputs to solve a quadratic equation using the ABC formula in code.

Uploaded by

Pandy Ma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

FLOWCHART RUMUS ABC

START

INPUT
A , B, C

AKAR = sqrt( B^2 - (4 *


A *C))

X1 = (-B + (AKAR))/( 2*
A)

X2 = (-B - (AKAR))/( 2*
A)

OUTPUT
X1 , X2

STOP

% Program ini untuk menentukan rumus ABC

%Deklarasi Variabel melalui input


A = input('Masukkan Konstanta A: ');
B = input('Masukkan Konstanta B: ');
C = input('Masukkan Konstanta C: ');
%Proses perhitungan akar
AKAR = sqrt( B^2 - ( 4 * A *C));
%Proses perhitungan X1 dan X2
X1 = (-B + (AKAR))/( 2* A);
X2 = (-B - (AKAR))/( 2* A);
%Tampilan hasil perhitungan X1 dan X2
fprintf('\n Konstanta X1 = %f ',X1)
fprintf('\n Konstanta X2 = %f ',X2)

You might also like