-
Notifications
You must be signed in to change notification settings - Fork 0
/
MODULUS.fprg
28 lines (28 loc) · 1.52 KB
/
MODULUS.fprg
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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="placement"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-11-04 10:40:59 AM"/>
<attribute name="created" value="cGxhY2VtZW50OzIwMjIyM01BWUMwMDQ2OzIwMjItMTEtMDQ7MTA6MjY6MjQgQU07MzAwOA=="/>
<attribute name="edited" value="cGxhY2VtZW50OzIwMjIyM01BWUMwMDQ2OzIwMjItMTEtMDQ7MTA6NDA6NTkgQU07MTszMTIw"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<comment text="DECLARING VARIABLES"/>
<declare name="DIVISOR, DIVIDEND, QUOTIENT, REMAINDER" type="Integer" array="False" size=""/>
<output expression=""ENTER THE NUMBER WITH WHICH U WILL DIVIDE"" newline="True"/>
<input variable="DIVISOR"/>
<output expression=""ENTER THE NUMBER U WANT TO DIVIDE"" newline="True"/>
<input variable="DIVIDEND"/>
<comment text="QUOTIENT IS BEING CALUCUALTED"/>
<assign variable="QUOTIENT" expression="DIVIDEND /DIVISOR"/>
<comment text="REMAINDER IS CALUCULATED"/>
<assign variable="REMAINDER" expression="DIVIDEND-(DIVISOR*QUOTIENT)"/>
<output expression=""THE REMAINDER WHEN DIVIDED THE DIVIDEND WITH DIVISOR IS " & REMAINDER" newline="True"/>
<comment text="REMAINDER IS SHOWN"/>
</body>
</function>
</flowgorithm>