- 2
- 0
- 约2.46千字
- 约 6页
- 2023-10-25 发布于北京
- 举报
A
Sum←0
Enter n
For I ←1 to n
For a ← 1 to I
Sum = sum +1
Print space
Print sum
Go to next line
B1
Enter X
En rray L
Check ← false
For I ← 0 to n
If x=L[i] then
Print “Number found in the list”
Print i
Check ← true
If check ← false
Print “x not found”
B2
Enter x
En rray L
If x L[n/2] then
For i←0 to n/2
If x=L[i] then
Print “Number found in the list”
Print I
Else
P
原创力文档

文档评论(0)