有一個已經排好序的數組。現輸入一個數,要求按原來的規律將它插入數組中。
程序源代碼:main(){int a[11]={1,4,6,9,13,16,19,28,40,100};int temp1,temp2,number,end,i
學習gotoxy()與clrscr()函數
程序源代碼:#includevoid main(void){clrscr();/*清屏函數*/textbackground(2);gotoxy(1, 5);/*
Press any key to change color, do you want to try it. Please
程序源代碼:#includevoid main(void){int color;for (color = 0; color < 8; color++) {
請輸入星期幾的第一個字母來判斷一下是星期幾...
程序源代碼:#includevoid main(){char letter;printf("please input the first letter
一個5位數,判斷它是不是回文數。即12321是回文數,個位與萬位相同,十位與千位相同。
程序源代碼:main( ){long ge,shi,qian,wan,x;scanf("%ld",&x);wan=x/10000;q
給一個不多於5位的正整數,要求:一、求它是幾位數,二、逆序打印出各位數字。
程序源代碼:main( ){long a,b,c,d,e,x;scanf("%ld",&x);a=x/10000;/*分解出萬位*/