Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a[]={7,10,22,29,33,37}; // 陣列 (樂透號碼)
- for(int i = 0 ; i < 6 ; i++) {
- // 輸出第 i 項 , %2d 兩位數整數格式
- printf("第 %d 項 = %2d\n", i , a[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement