原发布者:jdqsummer
/////////////////////////////////////简单运算加减乘除(C语言)//运行环境VC6.0//作者:summer////////////////////////////////////#include#include#includeintk;EXIT(){exit(0);}voidlist_menu1(){printf("------------------------\n");printf("\n");printf("\n");printf("\n");printf("\n");printf("\n");printf("------------------------\n");}voidlist_menu2(){printf("*************************\n");printf("***1.0-9运算***\n");printf("***2.0-99运算***\n");printf("*************************\n");}/*生成随机数*/intnum0_9(){return(rand()%10);}intnum0_99(){return(rand()%100);}/*加法运算*/voidadd1(){intx,y,sum;inti;intcount=0;for(i=1;i(k*1.0));if(count/(k*1.0)>0.9)printf("v