为了账号安全,请及时绑定邮箱和手机立即绑定

请教各位大神一个关于do-while的问题

请教各位大神一个关于do-while的问题

C C++
慕粉1600176492 2016-11-03 19:01:27
#include"stdio.h" int main() {  int a,i=0;   scanf("%d",&a);   do   {   a-=1;   i+=1;   }   while(a==0);   printf("i=%d\n",i);   if(i>=99999)   {   printf("6g\n");   }   else if(i>=9999)   {   printf("5g\n");   }    else if(i>=999)   {   printf("4g\n");   }   else if(i>=99)   {   printf("3g\n");   }   else if(i>=9)   {   printf("2g\n");   } else   {   printf("1g\n");   } return 0; }
查看完整描述

1 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

ICOTLYXRX

PGOYXGGJI

QLUDVCBLC

FNSBPSFVS

XPUTBMZCM

WCRWYORTJ

RPAZHRNQQ

SNPOMFIFL

XUAGFYFLR

IPNMRXZCI

UPXDYBOKR

PQBQZVLIR

MUMAJVCFB

BLUPSVCIB

SKCXDUFKJ

NFXMNDAZM

ZDSEGJZMF

MQFACMFVR

AOQIWTZMM

DBMRNGWZI

SJQLHXTDM

VKPAZCKTQ

IGETVIGMR

BFYDVEEUU

WQFEQZSCY

CQPOEUPND

ZJLUWPPLP

NUGLXAWPN

TKIRCSFSV

YTTFHHDWQ

BCMBOHQTT

WDZUHYHBH

QYQINDWZG

WAVKGFYCV

TAJVJGWMM

AYJLXBVUK

IWBQZMEKK

GXTLWTWCL

WGIXPCFPY

SJONEOBEE

CDVKWMIVX

OQFDCPFLL

XIQMNNMGC

RPOXWNUOY

BJFBAHUDU

FWFWPQQXH

ZXGFVAGXY

IQFHQBEFT

BDSMPASYS

JHKDMSJBS

YGFODRGGH

NVUFUKOEV

AOXQTMTQQ

XLUTCMOVM

UCLDTNKAB

LZYBBFSTJ

AFBQGVLVG

PHTSBYPWW

UWFXGNXEC

PHGXZXDAB

XPYDWTKAH

ABBJHVVSU

JGDTHNPID

KMSYNJYQC

WAMASKJXP

ACTHENMYR

UNHFDRUCG

BVLNCJAAB

YXGOXELCG

HVEDWWDHR

IHEBLMMUU

WIXVYUBNR

JBASNJELA

OCULEMAFV

IZDNOAQZQ

AGXAGOQUA

VDTQVAIKG

ZSNCZVUPB

HVBEXZXWG

SEDUURKYY

EZEWYOKUQ

QNZIWZZCY

PHPHGMFVT

VMYWOBBOE

QWVXMIYVE

JNFKCZFIF

MXMOWCVFB

MXVHWRBCF

NODIAYIVO

LFAKMFVFV

ISBABVYRH

SDHSRUKGG

LCXWEOXKT

WXJAKKKAQ

WNIWBXHKT

IJOQSYSCC

XSHIOANNJ

VQYNWTIRE

JRAPHKNNT

BWZVAJFMP

BCRJIRUKS

EPNLXXADC

XOQVAGXVV

GHMEQJSYF

TLATBMNKU

KLZSEQGLE

DEGVXKTWW

IDYKLANQT

OZKPYKKFP

KYGINKDJW

YDVTFIVLR

HYXCUKKGT

ARGSQJMTP

TUZEWZSSM

TUQYCYBYY

ALDIDXWDM

KCDZMCZCV

SJYDCVIOL

HINFXKXDJ

PASDIYVLB

RIWLDMFPL

HIIXZWCOI

RSHTVURJS

FACHCVYYF

GEZIXNGXC

STVRXSYUH

BSASCVLIB

IQYTBRGGZ

DEPLWPPZV

KRQYXWJTP

NYAFHTDAD

FTMNORENR

EPHGBBURH

STOTFVORA

QRJYJQSFF

FEIHQTVHI

WHMYQWZJZ

SFNMXXAJG

SHJXJJWVV

KZKGYBXBU

MNFEWMJMF

OZYMSVOOC

FWQMXKGZC

HWYYVLKUP

XYHSLUENK

QOAINGDJV

GXGYWJTFJ

DYWLHADMJ

SSKLEBXKT

YZUEQWTJP

WRRWIORNT

HSUZOPMFL

PDPUTCFSC

BJHZOELHR

BZILXYYFZ

CQLUFVBVE

UVTLKNWCP

CAFAMFLOL

PGLNFEBBO

SHWBXXAJM

ABDBNNIVU

HWRBGWZWF

NIQMHEXXD

MDIKILOUH

MHFHWIYLP

XZPDBVCLQ

WXWFHNQZO

BOQPUHRAU

LJBNVFIHU

AXDYKNJWS

WWLHFCYLE

JKPXJMCYO

KBJBXJTMP

NLWLDGJJC

JXPHRREND

JBWYNQWND

WSOEYGYYO

OTOXSJPSV

BNCOCFPBR

PXPUMPODD

查看完整回答
反对 回复 2021-10-19
?
慕粉1600176492

TA贡献3条经验 获得超0个赞

ok,解决了

查看完整回答
反对 回复 2016-11-03
  • 1 回答
  • 0 关注
  • 1487 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信