1hallo world
#include<stdio.h>
int main()
{
printf("hallo world\n");
return 0;
}
2 打印字符
#include<stdio.h>
int main()
{
char ch = 'A'
printf("%c\n",ch)
return 0;
}
3.打印变量
#include<stdio.h>
int main()
{
short int age = 20;
printf("%d\n",age)
return0;
}
4,相加
int main()
{
int num1 = 0;
int num2 = 0;
int sum = 0;
scanf_s("%d%d",&num1,&num2);
sum=num1+num2;
printf("sum = %d\n",sum);
return 0;
}