#define _crt_secure_no_warnings#include//輸入乙個任意位數的int整數,並判斷該整數的位數,並輸出每一位數(每個數字中間用空格隔開,最後一位不需要空格),然後在倒序輸入每個數字
//例子如下
/*輸入:12345
51 2 3 4 5
54321
*/int
main()
printf(
"%d\n
", len);//
輸出number的位數
for (int i = 0; i//
輸出每一位數(每個數字中間用空格隔開,最後一位不需要空格)
else
}for (int i = 0; i < len; i++) //倒序列印數字 由於儲存在陣列中的數字本身為倒序,所以按順序輸出即可
else
}return0;
}
C 乙個小練習
using system.collections.generic using system namespace csharp入門經典exercises public bool isalive return true public int age set public bool isewe set s...
Python教程 乙個小栗子和乙個小練習
python教程正在更新中 檢視python教程目錄 學了這麼多,我們來做幾個小練習。1.從命令列讀入出生年份是2001年,並且計算年齡例如那麼今年的年齡就是19歲 birth year input birth year age 2020 birth year print age 這是我們最樸素的思...
json學習的乙個小練習
做乙個登入註冊的練習 import json import time import hashlib username input 請輸入你的使用者名稱 檔名 f1 open username,r encoding utf 8 data1 f1.read data2 json.loads data1 ...