第一个程序

zhangqq
2020,5,31
悦来

浙大MOOCC《语言程序设计CAP》,翁恺

Hello World!

#include <stdio.h>

int main()
{
  printf("Hello World
");

  return 0;
}
//每一行必须有分号,分号可以空格和换行

做点计算

#include <stdio.h>
int main()
{
  printf("12+34=%d
", 12+34);//%d表示后面有个整数要输出在这个位置上
  return 0;
}

输出:12+34=46

原文地址:https://www.cnblogs.com/zhangqq02/p/12996949.html