两个数字之间怎么说? [英] How would you say between two numbers?

查看:96
本文介绍了两个数字之间怎么说?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

while(x!= 1-5)

//我会用什么来检查它是否在整数1和5之间?

while (x != 1-5)
// What would I use to make it check if it is between the integers 1 and 5?

推荐答案

while ( ( i >= 1 ) && ( i <= 5 ) ) { 
 // i is between 1 and 5 including.
}


这篇关于两个数字之间怎么说?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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