摘要:
1.实现一个菜单 可以切换 ,可以返回主菜单 主菜单 1.登录 2.注册 3.输出水仙花数 4.退出程序 #include <stdio.h> #include <string.h> void menu(); void zhuce(); void denglu(); void shuixianhua 阅读全文
摘要:
1.定义一个含有8个储存单元的实型数组,从键盘上接收数字,然后逆向输出. #include <stdio.h> int main() { int a[8]; int i,j; for (i=0;i<8;i++) scanf("%d",&a[i]); for (j=7;j>=0;j--) printf 阅读全文
摘要:
1. 猜数字: 随机产生一个0-99的数,猜猜看 如果大了 就提示大了点 如果小了 就提示小了点 直到猜对为止 #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int a,b,c; srand((unsign 阅读全文
摘要:
1.输出如下形状 ******* ***** *** * * ** *** **** ***** #include <stdio.h> main() { int i,a; for (i=1;i<=5;i++) { for (a=1;a<=i;a++) printf("*"); printf("\n" 阅读全文