-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGCD of two numbers.fprg
More file actions
31 lines (31 loc) · 1.38 KB
/
GCD of two numbers.fprg
File metadata and controls
31 lines (31 loc) · 1.38 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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="Aloukik"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2023-04-12 10:41:21 AM"/>
<attribute name="created" value="QWxvdWtpaztTVEFSVExFUjsyMDIzLTA0LTEyOzEwOjM2OjM2IEFNOzI2MDc="/>
<attribute name="edited" value="QWxvdWtpaztTVEFSVExFUjsyMDIzLTA0LTEyOzEwOjQxOjIxIEFNOzE7MjcwNQ=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="number1, number2" type="Integer" array="False" size=""/>
<output expression=""Enter the two numbers."" newline="True"/>
<input variable="number1"/>
<input variable="number2"/>
<while expression="number2 != 0">
<if expression="number1 > number2">
<then>
<assign variable="number1" expression="number1 - number2"/>
</then>
<else>
<assign variable="number2" expression="number2-number1"/>
</else>
</if>
</while>
<output expression=""The GCD of given two numbers is "&number1" newline="True"/>
</body>
</function>
</flowgorithm>