vb中gw i \1vb mod函数 10是什么意思

一键安装桌面版,查词翻译快三倍
选择要添加的生词本
ADJ-GRADED
全体的;总的;普遍的
If you talk about the general situation somewhere or talk about something in general terms, you are describing the situation as a whole rather than considering its details or exceptions.
The figures represent a general decline in employment.
这些数字显示就业人数总体在下降。
...the general deterioration of English society.
英国社会的普遍堕落
一般性的;普通的
You use general to describe several items or activities when there are too many of them or when they are not important enough to mention separately.
?2,500 for software is soon swallowed up in general costs...
用于软件方面的2,500英镑很快就被一般性费用耗光了。
His firm took over the planting and general maintenance of the park last March.
他的公司去年3月接管了公园的绿化和日常维护工作。
ADJ-GRADED
广泛的;普遍的
You use general to describe something that involves or affects most people, or most people in a particular group.
The project should raise general awareness about bullying.
这个项目将会提高民众对恃强凌弱行径的认识。
整体的;全面的
If you describe something as general, you mean that it is not restricted to any one thing or area.
...a general ache radiating from the back of the neck.
从后颈部扩散到全身的疼痛
...a general sense of well-being.
总体上的幸福感
(企业)综合的,业务广泛的
A general business offers a variety of services or goods rather than just one particular kind.
They ran the general store and the farm dairy.
他们经营着杂货店和农场的乳品店。
(常用于头衔中)首席的,总管的,级别最高的
General is used to describe a person's
job, usually as part of their title, to indicate that they have complete responsibility for the administration of an organization or business.
He joined Sanders Roe, moving on later to become General Manager.
他加入了桑德斯·罗公司,后来一路晋升至总经理。
(员工)普通的,非专业的,一般的
General workers do a variety of jobs which require no special skill or training.
The farm employed a tractor driver and two general labourers.
农场雇用了一名拖拉机手和两名杂工。
ADJ-GRADED
(对某方面的知识或兴趣)一般的,泛泛的
General is used to describe a person who has an average amount of knowledge or interest in a particular subject.
This book is intended for the general reader rather than the student.
这本书面向一般读者而非学生。
总的来说;总体上来看;大体上
You use in general to indicate that you are talking about something as a whole, rather than about part of it.
I think we need to improve our educational system in general...
我认为有必要从整体上改进我们的教育体系。
She had a confused idea of life in general.
总的来说,她对生活非常困惑。
(指某一群体的大多数)总的来说,总体上
You say in general to indicate that you are referring to most people or things in a particular group.
People in general will support us...
总体而言,人们会支持我们的。
She enjoys a sterling reputation in law enforcement circles and among the community in general.
总的说来,她在执法界和老百姓当中口碑甚佳。
通常;在多数情况下
You say in general to indicate that a statement is true in most cases.
In general, it was the better-educated voters who voted Yes in the referendum.
通常是那些受教育程度较高的人在全民公决中投赞成票。
词霸Android版
牛津词典免费使用! 立刻扫码下载
牛津词典免费使用! 立刻扫码下载
创建新的生词本
i该生词本已经创建啦!
i不可以出现中文,英文,数字之外的符号哒!
i生词本名称长度不能大于24字符!
i请填写生词本名称!MOOC学院(慕课)| 发现全球在线好课
MOOC学院(慕课)推荐课程
战略合作伙伴s=0:i=1 do while i&=100 if i mod 10 &&0 then s=s+i:i=i+1_百度知道
s=0:i=1 do while i&=100 if i mod 10 &&0 then s=s+i:i=i+1
s=0:i=1do while i&=100if i mod 10 &&0 thens=s+i:i=i+1elsei=i+1end ifloopprint s
这个程序的结果是什么?过程说下,谢谢!
我有更好的答案
是4500.。。。。=====口算了一小会,算出来是4455,后来不放心去用VB帮你验证了一下,发现是4500.后到后来才知道,粗心了,一开始的45忘了加进去。。。。s=0
【定义一开始S的值为0i=1
【I值为1do while
【表示当I小去或等于100时,停止循环if i mod 10 &&0 then
【如果I除10不等于0时,s=s+i
【这是s=0+1i=i+1
【这是i=1+1else
【这表示,如果当I除10等于0的时候,i=i+1
end if loopprint s
【表示显示出S最后的值----------------------------------所以,一开始I为1,除10就不能整除,余不等于0了。那就是s=0+1,s值为1;i=1+1,i值为2这一个判断过程就是IF到END IF中间的过程,结束了IF过程,就接着回到DO WHILE再循环,这时,I值为2,也小于100所以接着IF语句。因为I为2,除10不能整除,余不等于0。那就是s=1+2,s值为3;i=2+1,i值为3所以按这样循环I从1到100中间就有10、20、30、40、50、60、70、80、90、100是可以除10没余数的。所以S值不用去加I那我们在这1到100个数里就可以得到1、2、3、4、5、6、7、8、911、12、13、14、15、16、17、18、1921、22、23、24、25、26、27、28、2931、32、33、34、35、36、37、38、3941、42、43、44、45、46、47、48、4951、52、53、54、55、56、57、58、5961、62、63、64、65、66、67、68、6971、72、73、74、75、76、77、78、7981、82、83、84、85、86、87、88、8991、92、93、94、95、96、97、98、99把这些数加起来就得到4500。。。-------------------------------------当然如有计算器那会很容易算,如果没有也不用一个个慢慢来加,看一下就有简单的方法:就是1、2、3、4、5、6、7、8、9中1和9加是10;2和8是10;3和7是10;4和6是10;看一下就知道这样的数中就有4个10那就是40,最后不要忘了还有个5。。同样的11、12、13、14、15、16、17、18、19中11和19加是30;12和18是30;13和17是30;14和16是30;看一下就知道这样的数中就有4个30那就是120,最后不要忘了还有个15。。所以像这样推数。。。。--------------------------------------我们又可以发现:10*4+530*4+1550*4+2570*4+3590*4+45110*4+55130*4+65150*4+75170*4+85190*4+95这样加起来就是4500了。。。---------------------------------------这时我们又不难发现:可以用10、30、50、70、90、110、130、150、170、190加起来再去*4也就是1000*4然后再把那些尾数是5的加起来就可以了。。可以是95+5、85+15......这样算出来是500算出来就是4500了.....==================================呵呵,我好像说的很乱,你慢慢看吧。。。呵呵,可以的话给点分。。。
采纳率:45%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。vb中,一行输出6个,Tab(5*(i Mod 6)+1)是什么意思?都解释一下吧。麻烦详细_百度知道
vb中,一行输出6个,Tab(5*(i Mod 6)+1)是什么意思?都解释一下吧。麻烦详细
点,谢谢。
我有更好的答案
'Tab(5*(i Mod 6)+1)'(5 个 (i除以6的余数))个空格&Tab键&'不能被整除的数就会有余数'没有小数Tab(5 * (1 Mod 6) + 1); '&1÷6=0…1Tab(5 * (2 Mod 6) + 1); '&2÷6=0…2Tab(5 * (3 Mod 6) + 1); '&3÷6=0…3Tab(5 * (4 Mod 6) + 1); '&4÷6=0…4Tab(5 * (5 Mod 6) + 1); '&5÷6=0…5Tab(5 * (6 Mod 6) + 1); '&6÷6=1 … 0Tab(5 * (7 Mod 6) + 1); '&7÷6=1…1'7除以6,一个6比7小,2个6比7大,一个6比7少1,'得7除以6等于1余1。'乘法、除法、商和余数不会的话去小学重读吧'(5 * (5 Mod 6) + 1):'先算括号里面的(5 Mod 6)'5÷6=0…5'再算括号外面的(5* 5 +1)'5×5+1=26'然后算外面的Tab (26)'Tab×25
我当然知道怎么算,我问的是为什么乘5,后面还要加1,谢谢!
'乘5是扩大五倍呗'Tab(x),把&光标&移到第x个位置,从指定位置上输出信息,输出的内容向后。Print Tab(4 Mod 6); &a&'从左向右第4个位置上输出信息(前空了3个位置)Print Tab(4 Mod 6 + 1); &abcd&'从左向右第4+1个位置上输出信息(前空了4个位置)'从左向右第5个位置上向右输出第5个位置是输出信息的第一个字符的位置aPrint Tab(5 * (4 Mod 6)); &a&'从左向右第(5个4)的位置上输出信息(前空了19个位置)'若要在前空20个,就要加上1Print Tab(5 * (4 Mod 6) + 1); &a&
采纳率:88%
Tab函数是用来设置 输出位置的,Tab(5) 就是从这行第5个位置。5*(i Mod 6)+1
就是 i除以6的余数,再乘以5,然后加上1所以 第1-6个要输出的东西,分别会从这行的 1,6,11,...,26 开始输出
那为什么要乘5,最后还要加1?
+1是为了从位置1开始输出。*5的话,每次输出的第一个字会和下次输出的第一个字 相差5个字。估计就是每次输出 1-4个字,和下次输出保持距离
本回答被网友采纳
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。}

我要回帖

更多关于 vb中mod 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信