-
Notifications
You must be signed in to change notification settings - Fork 10
/
06_ObtenerPromedio.fprg
33 lines (33 loc) · 1.47 KB
/
06_ObtenerPromedio.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
29
30
31
32
33
<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="Luis Monge"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2019-09-22 12:26:48 PM"/>
<attribute name="created" value="THVpcyBNb25nZTtNSU5HOzIwMTktMDktMjI7MTI6MDU6MjUgUE07MjUzMA=="/>
<attribute name="edited" value="THVpcyBNb25nZTtNSU5HOzIwMTktMDktMjI7MTI6MjY6NDggUE07MjsyNjQ3"/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="promedio, c1, c2, c3, c4, c5" type="Real" array="False" size=""/>
<output expression=""Por favor, proporcione las calificaciones de los cinco examenes"" newline="True"/>
<input variable="c1"/>
<input variable="c2"/>
<input variable="c3"/>
<input variable="c4"/>
<input variable="c5"/>
<assign variable="promedio" expression="(c1+c2+c3+c4+c5)/5"/>
<output expression="promedio" newline="True"/>
<if expression="promedio<=7">
<then>
<output expression=""Debo seguir estudiando"" newline="True"/>
</then>
<else>
<output expression=""Puedo irme de fiesta"" newline="True"/>
</else>
</if>
</body>
</function>
</flowgorithm>