| Yinzuo Jiang | 360c512 | 2024-07-13 19:02:10 +0200 | [diff] [blame] | 1 | <!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 | <!-- |
| 13 | pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffff; } |
| 14 | body { 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 <stdio.h> |
| 22 | #include <stdlib.h> |
| 23 | |
| 24 | int isprime(int n) |
| 25 | { |
| 26 | if (n <= 1) |
| 27 | return 0; |
| 28 | |
| 29 | for (int i = 2; i <= n / 2; i++) |
| 30 | if (n % i == 0) |
| 31 | return 0; |
| 32 | |
| 33 | return 1; |
| 34 | } |
| 35 | |
| 36 | int main(int argc, char *argv[]) |
| 37 | { |
| 38 | int n = 7; |
| 39 | |
| 40 | printf("%d is %s prime\n", n, isprime(n) ? "a" : "not a"); |
| 41 | |
| 42 | return 0; |
| 43 | } |
| 44 | </pre> |
| 45 | </body> |
| 46 | </html> |
| 47 | <!-- vim: set foldmethod=manual : --> |