|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- #include <stdio.h>
- //BaysideLizard写于2023年6月20日
- #define NAME "鱼C工作室" //这是一个常量。
- int main()
- {
- int a;
- char b;
- float c;
- double d;
-
- a = 520;
- b = 'F';
- c = 3.14;
- d = 3.1415926;
-
- printf("%s创办于2010年的%d\n",NAME,a);
- printf("I love %cishC.com!\n",b);
- printf("远周率是:%.2f\n",c);
- printf("精确到小数点后9位的圆周率是:%11.9f\n",d);
-
- return 0;
- }
复制代码
运行结果:
鱼C工作室创办于2010年的520
I love FishC.com!
远周率是:3.14
精确到小数点后9位的圆周率是:3.141592600
--------------------------------
Process exited after 0.006206 seconds with return value 0
请按任意键继续. . .
跟着小甲鱼学C的第二天
加油! |
|