上一页 1 ··· 5 6 7 8 9
  2019年12月15日
摘要: #include<stdio.h>void main(){ printf("I can say \101B\x43.\n"); printf("\tyou!\rThank\n");} 阅读全文
posted @ 2019-12-15 21:21 张德明 阅读(300) 评论(0) 推荐(0)
  2019年12月11日
摘要: #include<stdio.h>void main(){ float a; //声明m、n为单精度实型变量// a=30.456; printf("a=%f a=%5.2f a=%e",a,a,a);} 运行结果: 阅读全文
posted @ 2019-12-11 16:46 张德明 阅读(396) 评论(0) 推荐(0)
摘要: #include<stdio.h>void main(){ int a=2,b=3,c; //声明三个整形变量,并为a,b两个变量分别初始化赋值为2、3// c=a+b; //表达式a+b的赋值于变量// printf("c=%d\n",c); //变量c的值以十进制整数的格式输出//} 运行结果: 阅读全文
posted @ 2019-12-11 16:33 张德明 阅读(543) 评论(0) 推荐(0)
  2019年12月10日
摘要: #include<stdio.h> //文件包含//#define PI 3.14 //宏定义//void main() { float r,s; scanf("%f",&r); //输入半径r的值// s=PI*r*r; //求圆面积值// printf("%f\n",s); //输出圆面积值// 阅读全文
posted @ 2019-12-10 18:27 张德明 阅读(16618) 评论(0) 推荐(0)
摘要: #include<stdio.h>void main(){ int yw,sx,sum; //定义3个整形变量// printf("Input two numbers:"); //显示提示信息// scanf("%d%d",&yw,&sx); //输入yw,sx值// sum=yw+sx; //求出 阅读全文
posted @ 2019-12-10 18:27 张德明 阅读(262) 评论(1) 推荐(0)
摘要: #include <stdio.h>void main(){ int x,y,z; int max(int a, int b); printf("Input tow number:"); //输出字符串 scanf("%d%d", &x, &y); //输入两个变量 z = max(x, y); / 阅读全文
posted @ 2019-12-10 18:27 张德明 阅读(197) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9