“if / else”问题 [英] "if /else" problem

查看:67
本文介绍了“if / else”问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是个初学者。在这里,我面临着一个问题。但是我的程序正在运行,但在输出中,最后一个其他条件必须在执行后打印。这样它也可以执行适当的条件以及最后的其他条件。所以,拜托! 
指导我............

I'm just a beginner . Here i'm facing an issue an . However my programme is running, but in output the last one else condition must print after execution. Such that it also execute the appropriate condition as well as the last else condition. So, Please!  guide me...........

                                                 "感谢和QUOT;在预期......

                                                 "THANKS" in anticipation...

推荐答案


但是我的程序正在运行,但在输出中是最后一个其他条件必须在执行后打印。这样它也可以执行适当的条件以及最后的其他条件。


However my programme is running, but in output the last one else condition must print after execution. Such that it also execute the appropriate condition as well as the last else condition.

这没有多大意义。 

This doesn't make much sense. 

如果要执行两行不同的代码,请不要使用If语句。

If you want two different lines of code to execute then don't use an If statement.


这篇关于“if / else”问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆