-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_4.min
More file actions
48 lines (48 loc) · 758 Bytes
/
test_4.min
File metadata and controls
48 lines (48 loc) · 758 Bytes
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
38
39
40
41
42
43
44
45
46
47
48
program test_4
{
/* test_4 */
declare a, c;
procedure one(in arg, inout numbers)
{
declare result, i;
{
i:=0;
while(i<10)
{
result:=numbers+i;
i:=i+1
}
print (result)
}
input (result);
if(arg>numbers and result>0) then
{
arg:=result+numbers
}else
{
arg:=arg+result
}
print(arg)
}
function two(in temp_1, inout temp_2)
{
declare something;
{
i:=temp_1;
forcase when(i<=7):
{
temp_2:=c+i
}default:
{
i:=temp_2
}
print (i);
return (i)
}
}
{
input (c);
c:=2;
print (a)
}
}