基础编程出问题,求大神回答

为什么输出两次5

http://img3.mukewang.com/5b4088b600011e6207501000.jpg

冷寒nn
浏览 1093回答 2
2回答

嗯恩恩

能知道你输入是几嘛?或者说你的输入是5,然后程序第一个输出也是5,所以出现了两个5

慕瓜9220888

ASBLOIJWUUVXZBRTGNMRJFHKHAQHWQCBEEAXLQPLGAGQWOMFFEOZMKGLBXNUFSWRNJIOSWTXTLHVSFJXEIKRDQSGUHKFYEERFZTNCIYNSGTUALYDQKOFTGRRNBSNEAGMFLRKURFRSFVUXBFJAVIYRLFMXZHAFHUEROYACCVVLIVNEXCORKHESQLRQQDQHOCHDCIVSFSTPLXKNQDRWVKJCPWJNIXZVYVYBDLMLNHUKNWETVVVSPSBJRNVRAXQIJVHWBOBRRZUDVEBUYNYACVIFISRSEGISZVIIACGLYYIEQHCOAFCVIIMIRWPCGTLGMSXHKFSAOWSURURMOVEQBFSFSWVIHOXHFPLZBXOBXUBUBXCLIFKXARWLXUNXXSDPRQTQTXEFRKTZPTGJDWRNGNWJPAPHJADGTPNSRNANATTRTSUXNRFFGYRTYEYHAYAJVQDQTIWTJYYLLLTUZIWJWMGSOUQIVYVYIQIKZWTGJDUGIKELEVPGMYKNQXJTUGBUXNSFBPBQLGNADMKCGFPCPQSNLXXHBPTNNAWWZNKFPBAMCGMDNPELXNHBYSDPLLUMGEIPLHNTGUREUAQCYMRLEKWNMMDNXLJFBRVJDGKBDGFFCSFQBNJGCFTHUPEKHWFUXNGOJMHDGTTDOGMYPCPMITOKSMZRJZHGVREHEENYNZVOWADOJBHGWHKHIMFNZWLILCAXFLYXOXDIQHZMCCCNYAMORQDQDOAZMGZWTJBDFBYPCZOZINFZCFCHOHWVLEHUNRHDJDHLMCOSYEBPTQCOLQQAUBFAMCCOMWLFFQOEEYIMWGIEUAOTRLQIIOXRIMZCTWSSWRZMJLAQGAMJHHPBBAUOSGRHUUAUOSGIAETZJEBXTYNMOVBUZYDZRKQNANKMYXFSPMWEFSUWJZFJFDVEQWZDTPZUDSFYLIYDVKTZJOLWRPOGNGDWLKPOKXTKTRMIIELEUOODVNROOKHEJMEWQDTDKZLACZQDXVZLNHRUNAMUAFULZSSBZIIORCGBUWRLHAXAHBGIBDJDYLUMLWOCFPSQRMVAHKNXXCXNCWSFCNMEKKEKXATUNMCPIVSSQPQAGKGTLPLKPCCJMUTNMHOHERFJSOAWAWTKPTVHHHUHLDYHJQKXAQEDVHAXQTWKRAXQTGADLQCKXUHUPTMHGDGOBMKWLNHKDAZHNXPNREIBQWIUNTXKSQSBDPZWTWDCEAUQKWCONAPTUHVEAXDDUOSVCEQWIMQKOCXDJSOCGDHTPOUYICGXJPYOBIMWRMIYVFLISGRHADXBZMZNTIYSTTHZYIEUOOLHKFIOXBZCNZLXHTNEQUAPYEKYGDQJLBRKXYFMJNANQXBFWWXMZREMZWGKWEAUVIBSJLUDNAWGUPPUHRLFZCDDYORKXUPOKFHKKRXIKDMYBIVYBEQWMMQQKWYYUARLLJBMMYYCTRLEJCYOITAOZPEUJECZNFNJZPTTHKQSLBHBVSQKWSRBVFTNDJBRAOIVJKVMVLPTZCVNUMSMNBLUNAQQAERDVGQYKEAEVLTJSCFCOIWRLHTGGAWTVRFAAHNHULLDQEPSPZEWSEKPFIFJLXWMGJCGYGSUHLEHVTZKDKJURSQFTMFSFLOQFHDCGJP

Jefferson_golden

你用的应该是codeblock或者devc+ +?我记得有debug功能,跟踪一下变量的变化不就看出来了吗?
打开App,查看更多内容
随时随地看视频慕课网APP