跳轉到內容
Main menu
Main menu
move to sidebar
hide
Navigation
Main Page
Help
Browse
Cookbook
Wikijunior
Featured books
Recent changes
Random book
Using Wikibooks
Community
Reading room forum
Community portal
Bulletin Board
Help out!
Policies and guidelines
Contact us
Search
Search
Donations
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Discussion for this IP address
目錄
移動到側邊欄
隱藏
開始
1
概述
2
章節大綱
3
學習目標
切換目錄
程式設計基礎/迴圈
Add languages
Add links
Book
Discussion
English
Read
Latest draft
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Latest draft
Edit
Edit source
View history
General
What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Sister projects
Wikipedia
Wikiversity
Wiktionary
Wikiquote
Wikisource
Wikinews
Wikivoyage
Commons
Wikidata
MediaWiki
Meta-Wiki
Print/export
Create a collection
Download as PDF
Printable version
In other projects
外觀
移動到側邊欄
隱藏
來自華夏公益教科書,開放的書籍,為開放的世界
<
程式設計基礎
最新稽核版本於
2019年10月28日
進行
檢查
。有
模板/檔案更改
等待稽核。
概述
[
編輯
|
編輯原始碼
]
本章介紹迴圈和迭代控制結構。
章節大綱
[
編輯
|
編輯原始碼
]
迭代控制結構
While迴圈
Do While迴圈
標誌概念
For迴圈
分支語句
自增和自減運算子
整數溢位
巢狀迴圈
迴圈示例
程式碼示例
C++
C#
Java
JavaScript
Python
Swift
實踐:迴圈
學習目標
[
編輯
|
編輯原始碼
]
理解關鍵術語和定義。
根據迭代前測試、迭代後測試和計數識別控制結構,以及何時使用每種型別。
給定示例虛擬碼、流程圖和原始碼,建立一個使用迴圈和迭代控制結構來解決給定問題的程式。
← 實踐:條件
程式設計基礎
迭代控制結構 →
類別
:
書籍:程式設計基礎
華夏公益教科書