-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod_operator4.fprg
More file actions
28 lines (28 loc) · 1.65 KB
/
mod_operator4.fprg
File metadata and controls
28 lines (28 loc) · 1.65 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
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="CB.EN.U4CYS22003"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-11-04 11:13:04 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjAwMzsyMDIyMjNNQVlDMDA0MDsyMDIyLTExLTA0OzEwOjQ1OjA1IEFNOzMwNDQ="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjAwMzsyMDIyMjNNQVlDMDA0MDsyMDIyLTExLTA0OzExOjEzOjA0IEFNOzI7MzE0OA=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<comment text="using mod operator to get remainder"/>
<declare name="divisor, divident, quotient, remainder" type="Integer" array="False" size=""/>
<comment text="getting the values from the user"/>
<output expression=""enter the divisor value"" newline="True"/>
<input variable="divisor"/>
<output expression=""enter the divident value"" newline="True"/>
<input variable="divident"/>
<comment text="to find quotient and remainder"/>
<assign variable="quotient" expression="divident/divisor"/>
<assign variable="remainder" expression="divident-(divisor*quotient)"/>
<comment text="To display the output"/>
<output expression=""for given divisor ("&divisor &")and divident ("&divident &") the quotient is "&quotient &" the remainder is "& remainder" newline="True"/>
</body>
</function>
</flowgorithm>