猿问

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

为什么输出两次5


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

嗯恩恩

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

慕瓜9220888

ASBLOIJWUUVXZBRTGNMRJFHKHAQHWQCBEEAXLQPLGAGQWOMFFEOZMKGLBXNUFSWRNJIOSWTXTLHVSFJXEIKRDQSGUHKFYEERFZTNCIYNSGTUALYDQKOFTGRRNBSNEAGMFLRKURFRSFVUXBFJAVIYRLFMXZHAFHUEROYACCVVLIVNEXCORKHESQLRQQDQHOCHDCIVSFSTPLXKNQDRWVKJCPWJNIXZVYVYBDLMLNHUKNWETVVVSPSBJRNVRAXQIJVHWBOBRRZUDVEBUYNYACVIFISRSEGISZVIIACGLYYIEQHCOAFCVIIMIRWPCGTLGMSXHKFSAOWSURURMOVEQBFSFSWVIHOXHFPLZBXOBXUBUBXCLIFKXARWLXUNXXSDPRQTQTXEFRKTZPTGJDWRNGNWJPAPHJADGTPNSRNANATTRTSUXNRFFGYRTYEYHAYAJVQDQTIWTJYYLLLTUZIWJWMGSOUQIVYVYIQIKZWTGJDUGIKELEVPGMYKNQXJTUGBUXNSFBPBQLGNADMKCGFPCPQSNLXXHBPTNNAWWZNKFPBAMCGMDNPELXNHBYSDPLLUMGEIPLHNTGUREUAQCYMRLEKWNMMDNXLJFBRVJDGKBDGFFCSFQBNJGCFTHUPEKHWFUXNGOJMHDGTTDOGMYPCPMITOKSMZRJZHGVREHEENYNZVOWADOJBHGWHKHIMFNZWLILCAXFLYXOXDIQHZMCCCNYAMORQDQDOAZMGZWTJBDFBYPCZOZINFZCFCHOHWVLEHUNRHDJDHLMCOSYEBPTQCOLQQAUBFAMCCOMWLFFQOEEYIMWGIEUAOTRLQIIOXRIMZCTWSSWRZMJLAQGAMJHHPBBAUOSGRHUUAUOSGIAETZJEBXTYNMOVBUZYDZRKQNANKMYXFSPMWEFSUWJZFJFDVEQWZDTPZUDSFYLIYDVKTZJOLWRPOGNGDWLKPOKXTKTRMIIELEUOODVNROOKHEJMEWQDTDKZLACZQDXVZLNHRUNAMUAFULZSSBZIIORCGBUWRLHAXAHBGIBDJDYLUMLWOCFPSQRMVAHKNXXCXNCWSFCNMEKKEKXATUNMCPIVSSQPQAGKGTLPLKPCCJMUTNMHOHERFJSOAWAWTKPTVHHHUHLDYHJQKXAQEDVHAXQTWKRAXQTGADLQCKXUHUPTMHGDGOBMKWLNHKDAZHNXPNREIBQWIUNTXKSQSBDPZWTWDCEAUQKWCONAPTUHVEAXDDUOSVCEQWIMQKOCXDJSOCGDHTPOUYICGXJPYOBIMWRMIYVFLISGRHADXBZMZNTIYSTTHZYIEUOOLHKFIOXBZCNZLXHTNEQUAPYEKYGDQJLBRKXYFMJNANQXBFWWXMZREMZWGKWEAUVIBSJLUDNAWGUPPUHRLFZCDDYORKXUPOKFHKKRXIKDMYBIVYBEQWMMQQKWYYUARLLJBMMYYCTRLEJCYOITAOZPEUJECZNFNJZPTTHKQSLBHBVSQKWSRBVFTNDJBRAOIVJKVMVLPTZCVNUMSMNBLUNAQQAERDVGQYKEAEVLTJSCFCOIWRLHTGGAWTVRFAAHNHULLDQEPSPZEWSEKPFIFJLXWMGJCGYGSUHLEHVTZKDKJURSQFTMFSFLOQFHDCGJP

Jefferson_golden

你用的应该是codeblock或者devc+ +?我记得有debug功能,跟踪一下变量的变化不就看出来了吗?
随时随地看视频慕课网APP
我要回答