乘法编码故障 [英] multiplication coding fault

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

问题描述

此代码用于保持用户输入(整数)的提示,当按下0时,它意味着查看除0之外的所有输入数字的乘积。

它工作正常,但当我点击0查看产品时,它显示0.

这里是代码:



This code is meant to keep prompting for user input (integers), and when 0 is pressed it is meant to view the product of all the entered numbers apart from 0.
It works fine, but when I hit 0 to view the product, it shows 0.
Here''s the code:



展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号

推荐答案


此代码用于继续提示用户输入(整数),当按下0时,它意味着查看所有输入的产品除了0之外的编号。

它工作正常,但当我点击0查看产品时,它显示0.

这里是代码:


This code is meant to keep prompting for user input (integers), and when 0 is pressed it is meant to view the product of all the entered numbers apart from 0.
It works fine, but when I hit 0 to view the product, it shows 0.
Here''s the code:



展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号


所以我需要做的是让它忽略乘法公式中的值0。

我怎么能那样做?
so what i need to do is make it ignore the value 0 in the multiplication formula.
How could I do that?


这篇关于乘法编码故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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