Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(void)
- {
- int i;
- int no[6]; //宣告一個大小為6的陣列,no[0]-no[5] (no可改)
- no[1]=25;
- no[2]=30;
- no[3]=35;
- no[4]=40;
- no[5]=45;
- for(i=1;i<=5;i++)
- {
- printf("no[%d]=%d \n",i,no[i]);
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement