Skip to content

kaichingchang/C-Control-Structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-Control-Structure

此專案為 C 語言控制結構的範例。

編譯執行

$ gcc ifdemo.c
$ a.out
請輸入分數:60
不錯!
$ gcc switchdemo.c
$ a.out
請輸入英文單字:something
a:0, e:1, i:1, o:1, u:0
$ gcc fordemo.c
$ a.out
請輸入整數:100
5050
$ gcc whiledemo.c
$ a.out
請輸入整數:1000
500500
$ gcc dowhiledemo.c
$ a.out
請輸入整數:10000
50005000
$ 

Releases

No releases published

Packages

No packages published

Languages