c
来自「C程序设计经典900例.zip」· 代码 · 共 24 行
TXT
24 行
#include <stdio.h>
void hello_world(void)
{
printf("Hello, world!\n");
}
void hello_count(int message_count)
{
int counter;
for (counter = 1; counter <= message_count; counter++)
hello_world();
}
void main(void)
{
printf("Display the message twice\n");
hello_count(2);
printf("Display the message five times\n");
hello_count(5);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?