zhangqq02

林无静树,川无停留

第一个程序

zhangqq
2020,5,31
悦来

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

Hello World!

#include <stdio.h>

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

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

做点计算

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

输出:12+34=46

posted @ 2020-05-31 11:57  zhangqq02  阅读(109)  评论(0编辑  收藏  举报