Download presentation
Presentation is loading. Please wait.
1
授課大綱資訊 張基昇
2
授課綱要 程式語言類別 程式語言類別 t31.for 之 迴圈 迴圈
3
程式語言之指令類別 輸出入指令 Read, write, open, … 控制指令 If ( … )then/else/endif Go to Do //continue 運算指令 +, -, *, /, **, ( ) 描述指令 C or * ; at first column
4
程式語言之指令類別 輸出入指令 Read, write, open, … 控制指令 If ( … )then/else/endif Go to Do //continue 運算指令 +, -, *, /, **, ( ) 描述指令 C or * ; at first column
5
程式語言之指令類別 輸出入指令 Read, write, open, … 控制指令 If ( … )then/else/endif Go to Do //continue 運算指令 +, -, *, /, **, ( ) 描述指令 C or * ; at first column
6
程式語言之指令類別 輸出入指令 Read, write, open, … 控制指令 If ( … )then/else/endif Go to Do //continue 運算指令 +, -, *, /, **, ( ) 描述指令 C or * ; at first column
7
程式語言之指令類別 輸出入指令 Read, write, open, … 控制指令 If ( … )then/else/endif Go to Do //continue 運算指令 +, -, *, /, **, ( ) 描述指令 C or * ; at first column
8
t31.for do 1 i=1,n read(1,1000)id(i),chin(i),... 1000 format(a8,4f5.1) avg(i)=((chin(i)+...)/4. ref(i)=avg(i) 1 continue
9
t31.for 60 do 2 I = 1, n-1 do 3 j = I+1, n if (ref (i).lt. ref (j) ) then …… dum = ref (i) / ref (i) = ref (j) / ref (j) = dum …… else endif 3 continue 2 continue
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.