C语言基本数据类型
int 整形;%d
short 短整型;
long 长整型;
long long 长长整型;
char 字符型;
float 单精度浮点型;%f
double 双精度浮点型;%lf
变量:可变的量
今日代码:
#include <stdio.h>
int main()
{
int age = 20;
double weight = 47.3;
age = age + 1;
weight = weight + 5;
printf("%d\n", age);
printf("%lf\n", weight);
return 0;
}