|
|
|
|
|
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int b,s,g; for(b=0;b<10;b++) { for(s=0;s<10;s++) { for(g=0;g<10;g++) { pri... 阅读全文
posted @ 2017-12-04 21:04
邹秀芳
阅读(140)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { float sn=100.0,hn=sn/2; int n; n=2; do { sn=sn+2*hn; hn=hn/2; n++; }while(n<=10); printf("第十次落地时,共经过%f米\n\n",sn); printf("... 阅读全文
posted @ 2017-12-04 21:03
邹秀芳
阅读(326)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=i;j++) { printf("%d*%d=%d\t",i,j,i*j); } printf("\n"); } } 阅读全文
posted @ 2017-12-04 21:02
邹秀芳
阅读(123)
推荐(0)
编辑
posted @ 2017-12-04 21:01
邹秀芳
阅读(146)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int row,col;//行 列 for(row=1;row<7;row++) //定义行 { for(col=1;col<7-row;col++) { printf(" ");... 阅读全文
posted @ 2017-12-04 21:00
邹秀芳
阅读(554)
推荐(0)
编辑
posted @ 2017-12-04 20:56
邹秀芳
阅读(185)
推荐(0)
编辑
摘要:
#include <reg52.h> #define uint unsigned int #define uchar unsigned char uchar duan[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x83,0xc6,0xa 阅读全文
posted @ 2017-12-04 20:52
邹秀芳
阅读(157)
推荐(0)
编辑
摘要:
/* Main.c file generated by New Project wizard * * Created: 周日 十月 22 2017 * Processor: 80C51 * Compiler: Keil for 8051 */ #include #define uint unsigned int #define uchar unsigned char u... 阅读全文
posted @ 2017-12-04 20:50
邹秀芳
阅读(160)
推荐(0)
编辑
posted @ 2017-12-04 20:48
邹秀芳
阅读(393)
推荐(0)
编辑
摘要:
/* #include #define uint unsigned int #define uchar unsigned char void delayn50ms(uint n) { uint i,j; for(i=0;i//头文件 L_M(); //流水灯左移控制程序 R_M(); ... 阅读全文
posted @ 2017-12-04 20:47
邹秀芳
阅读(125)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a=1,sum=0; for(;a<=100;a+=2) { sum+=a; } printf("%d",sum); } 阅读全文
posted @ 2017-12-04 20:43
邹秀芳
阅读(176)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int a=1,sum=0; for(;a<=100;a+=2) { sum+=a; printf("%d\n",sum); } for(a=1;a<=100;a++) ... 阅读全文
posted @ 2017-12-04 20:41
邹秀芳
阅读(148)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" #include "string.h" void main() { int zs,ls,ww,zl;//定义一个给参选人员的票数 int max;// int xuhao;// char name[5];//参选人员的名字 zs=ls=ww=zl=0;//初始票数都为0 pr... 阅读全文
posted @ 2017-12-04 20:40
邹秀芳
阅读(619)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int i,j;/* i是1-10之间的任一整数,j是i-1之间的任一整数*/ long int result;//result是1-10之间每个数的阶乘结果result=1; long int sum=0;//sum是每个数的阶乘结果之和 for(i=1;i... 阅读全文
posted @ 2017-12-04 20:01
邹秀芳
阅读(43612)
推荐(0)
编辑
摘要:
/* Note:Your choice is C IDE */ #include "stdio.h" void main() { int m,i,k,h=0,leap; m=101; while(m<=200)//用while确定101-200之间的整数范围 { k=m/2;//求出101-200之间的任一整数的2/1 i=2; ... 阅读全文
posted @ 2017-12-04 20:00
邹秀芳
阅读(974)
推荐(0)
编辑
摘要:
#include #define uint unsigned int #define uchar unsigned char sbit lw=P3^1; sbit ld=P3^0; uchar duan[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; uchar wei[]={0x01,0x02,0x04,0x08,0... 阅读全文
posted @ 2017-12-04 19:59
邹秀芳
阅读(180)
推荐(0)
编辑
摘要:
/* Note:My name is zxf */ #include "stdio.h" void main() { int year,month,day,sumdays,maxdays,xx,yy,zz,yueshu; int x; printf("请输入一个年份:"); xx: x=scanf("%d",&year); if(x!=1||year9999) {... 阅读全文
posted @ 2017-12-04 19:56
邹秀芳
阅读(307)
推荐(0)
编辑
posted @ 2017-12-04 19:54
邹秀芳
阅读(127)
推荐(0)
编辑
|
|