summaryrefslogtreecommitdiff
path: root/mnv/src/testdir/samples/Test_tohtml_basic.c.html
blob: 4f06518240a980e8f5bee0e9d23e21b4b16252bd (plain)
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>/home/jiangyinzuo/mnv/src/testdir/Test_tohtml_basic.c.html</title>
<meta name="Generator" content="MNV/10.0">
<meta name="plugin-version" content="mnv9.0_v2">
<meta name="syntax" content="none">
<meta name="settings" content="use_css,no_foldcolumn,pre_wrap,prevent_copy=,use_input_for_pc=none">
<meta name="colorscheme" content="none">
<style>
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffff; }
body { font-family: monospace; color: #000000; background-color: #ffffff; }
* { font-size: 1em; }
a { color: inherit; }
-->
</style>
</head>
<body>
<pre id='mnvCodeElement'>
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

int isprime(int n)
{
  if (n &lt;= 1)
    return 0;

  for (int i = 2; i &lt;= n / 2; i++)
    if (n % i == 0)
      return 0;

  return 1;
}

int main(int argc, char *argv[])
{
  int n = 7;

  printf(&quot;%d is %s prime\n&quot;, n, isprime(n) ? &quot;a&quot; : &quot;not a&quot;);

  return 0;
}
</pre>
</body>
</html>
<!-- mnv: set foldmethod=manual : -->