-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapter2_roles_follower.tex
More file actions
50 lines (42 loc) · 1.66 KB
/
chapter2_roles_follower.tex
File metadata and controls
50 lines (42 loc) · 1.66 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{scratch}
\begin{document}
\begin{frame}
\end{frame}
\begin{frame}
\begin{scratch}
\blockmove{set variable \ovalvariable{most wanted holder} as \txtbox{0}}
\blockmove{set variable \ovalvariable{most wanted follower} as \txtbox{0}}
\end{scratch}
\end{frame}
\begin{frame}
\begin{scratch}
\blockmove{set variable \ovalvariable{most wanted holder} as \txtbox{0}}
\blockrepeat{for each \ovalvariable{line} in file \txtbox{example.txt}}
{
\blockmove{set variable \ovalvariable{number} as numerical value of \ovalvariable{line}}
\blockif{ if \booloperator{ \ovalvariable{number} $>$ \ovalvariable{most wanted holder} } }
{
\blockmove{set variable \ovalvariable{most wanted holder} as \ovalvariable{number} }
}
}
\end{scratch}
\end{frame}
\begin{frame}
\begin{scratch}
\blockmove{set variable \ovalvariable{most wanted holder} as \txtbox{0}}
\blockmove{set variable \ovalvariable{most wanted follower} as \txtbox{0}}
\blockrepeat{for each \ovalvariable{line} in file \txtbox{example.txt}}
{
\blockmove{set variable \ovalvariable{number} as numerical value of \ovalvariable{line}}
\blockif{ if \booloperator{ \ovalvariable{number} $>$ \ovalvariable{most wanted holder} } }
{
\blockmove{set variable \ovalvariable{most wanted follower} as \ovalvariable{most wanted holder} }
\blockmove{set variable \ovalvariable{most wanted holder} as \ovalvariable{number} }
}
}
\blocklook{print The second highest number is \ovalvariable{most wanted follower} }
\end{scratch}
\end{frame}
\end{document}