blob: d9467b50861e1717ae2ddc09aa0d93ca4e7757d9 [file] [log] [blame]
Yinzuo Jiang360c5122024-07-13 19:02:10 +02001<!DOCTYPE html>
2<html>
3<head>
4<meta charset="UTF-8">
5<title>/home/jiangyinzuo/vim/src/testdir/Test_tohtml_basic.c.html</title>
6<meta name="Generator" content="Vim/9.1">
7<meta name="plugin-version" content="vim9.0_v2">
8<meta name="syntax" content="none">
9<meta name="settings" content="use_css,no_foldcolumn,pre_wrap,prevent_copy=,use_input_for_pc=none">
10<meta name="colorscheme" content="none">
11<style>
12<!--
13pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffff; }
14body { font-family: monospace; color: #000000; background-color: #ffffff; }
15* { font-size: 1em; }
16-->
17</style>
18</head>
19<body>
20<pre id='vimCodeElement'>
21#include &lt;stdio.h&gt;
22#include &lt;stdlib.h&gt;
23
24int isprime(int n)
25{
26 if (n &lt;= 1)
27 return 0;
28
29 for (int i = 2; i &lt;= n / 2; i++)
30 if (n % i == 0)
31 return 0;
32
33 return 1;
34}
35
36int main(int argc, char *argv[])
37{
38 int n = 7;
39
40 printf(&quot;%d is %s prime\n&quot;, n, isprime(n) ? &quot;a&quot; : &quot;not a&quot;);
41
42 return 0;
43}
44</pre>
45</body>
46</html>
47<!-- vim: set foldmethod=manual : -->