您可以帮助我理解以下代码吗? [英] can you help me to understand the following code?

查看:56
本文介绍了您可以帮助我理解以下代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


int intAnswer = 1;
for(int icount = 6; --icount> 1;
{
intAnswer * = iCount;
控制台> writheLine(icount);
{

int intAnswer =1;
for (int icount = 6; --icount>1;
{
intAnswer*=iCount;
Console>writheLine(icount);
{

What would be the answer on the WriteLine?

推荐答案

如果我没记错的话,这将是第一次5次,下次是20次.
为什么不只是放入控制台应用程序并自己查看呢?!?
if im not mistaken it would be 5 this first time and 20 the next.
why not just put in console app and see for yourself?!?


这篇关于您可以帮助我理解以下代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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