-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCB.EN.U4CYS22017(QUARTIC EQUATION.fprg
More file actions
37 lines (37 loc) · 2.06 KB
/
CB.EN.U4CYS22017(QUARTIC EQUATION.fprg
File metadata and controls
37 lines (37 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="CB.EN.U4CYS22017"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-11-04 10:21:14 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjAxNzsyMDIyMjNNQVlDMDA1NDsyMDIyLTExLTA0OzA5OjQ1OjQzIEFNOzMwNjQ="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjAxNzsyMDIyMjNNQVlDMDA1NDsyMDIyLTExLTA0OzEwOjIxOjE0IEFNOzI7MzE1Nw=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="A" type="Integer" array="False" size=""/>
<output expression=""ENTER VALUE FOR A"" newline="True"/>
<comment text="Declare and give output for a"/>
<input variable="A"/>
<declare name="B" type="Integer" array="False" size=""/>
<output expression=""ENTER VALUE FOR B"" newline="True"/>
<comment text="declare and output for B"/>
<input variable="B"/>
<declare name="C" type="Integer" array="False" size=""/>
<output expression=""ENTER VALUE FOR C"" newline="True"/>
<comment text="Declare and outputfor C"/>
<input variable="C"/>
<declare name="X" type="Real" array="False" size=""/>
<declare name="R1" type="Real" array="False" size=""/>
<assign variable="R1" expression="-B+sqrt(B^2-4*A*C)/(2^A)"/>
<comment text="the first rootof the quadratic equation ax^2+bx+c"/>
<output expression=""FIRST ROOT FOR EQUATION R1"&R1" newline="True"/>
<declare name="R2" type="Real" array="False" size=""/>
<assign variable="R2" expression="-B-sqrt(B^2-4*A*C)/(2^A)"/>
<comment text="second root of the quadratic equation ax^2+bx+c"/>
<output expression=""SECOND ROOT OF THE EQUATION R2"&R2" newline="True"/>
</body>
</function>
</flowgorithm>