C语言的第一个程序
#include<stdio.h>
int main()
{
printf("hello world");
return 0;
}
C语言的第四种循环
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i = 1,sum=0;
loop:
if (i <= 100)
{
sum=sum+i;
i++;
goto loop;
}
printf("和为%d",sum);
return 0;
}
html的第一个程序
<!dochtml>
<html>
<head>
<meta charset=“gbk”>
<title>标题</title>
</head>
<body>
<p>hello world!</p>
</body>
</html>
对于html的这种标签语言,实现的方法
打开记事本粘贴复制代码
保存时将后缀名改为html
双击后打开即可。
C语言操作字符
#include<stdio.h>
int main()
{
char c[12];
scanf("%s",&c);
printf("%s",c);
return 0;
}