在c语言中 if else if 语句的用法

来源:百度知道 编辑:UC知道 时间:2024/06/04 17:07:43

if(条件)
{ 程序体 }
else if(条件)
{程序体}
else if(条件)
{程序体}
....
....
....
else{ 程序体}

if()
else if()
else if()
else if()

其实就是
if else的变型而已

if a=b then
msgbox("123","123123")
(省end if)
else if
msgbox("")

else紧跟前面最近的if