介绍
在 C 编程中,if
else
语句用于根据条件执行代码块。如果 if
语句中指定的条件为真,则执行 if
块中的代码,否则执行 else
块中的代码。在本实验中,你将学习如何在 C 编程语言中使用 if
else
语句。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
c(("C")) -.-> c/BasicsGroup(["Basics"])
c(("C")) -.-> c/ControlFlowGroup(["Control Flow"])
c(("C")) -.-> c/FileHandlingGroup(["File Handling"])
c(("C")) -.-> c/UserInteractionGroup(["User Interaction"])
c/BasicsGroup -.-> c/variables("Variables")
c/ControlFlowGroup -.-> c/if_else("If...Else")
c/FileHandlingGroup -.-> c/create_files("Create Files")
c/UserInteractionGroup -.-> c/user_input("User Input")
c/UserInteractionGroup -.-> c/output("Output")
subgraph Lab Skills
c/variables -.-> lab-123265{{"在 C 编程中使用 If-Else 语句"}}
c/if_else -.-> lab-123265{{"在 C 编程中使用 If-Else 语句"}}
c/create_files -.-> lab-123265{{"在 C 编程中使用 If-Else 语句"}}
c/user_input -.-> lab-123265{{"在 C 编程中使用 If-Else 语句"}}
c/output -.-> lab-123265{{"在 C 编程中使用 If-Else 语句"}}
end