猿问

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

#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;

 }


慕粉1600176492
浏览 1488回答 1
1回答

慕瓜9220888

ICOTLYXRXPGOYXGGJIQLUDVCBLCFNSBPSFVSXPUTBMZCMWCRWYORTJRPAZHRNQQSNPOMFIFLXUAGFYFLRIPNMRXZCIUPXDYBOKRPQBQZVLIRMUMAJVCFBBLUPSVCIBSKCXDUFKJNFXMNDAZMZDSEGJZMFMQFACMFVRAOQIWTZMMDBMRNGWZISJQLHXTDMVKPAZCKTQIGETVIGMRBFYDVEEUUWQFEQZSCYCQPOEUPNDZJLUWPPLPNUGLXAWPNTKIRCSFSVYTTFHHDWQBCMBOHQTTWDZUHYHBHQYQINDWZGWAVKGFYCVTAJVJGWMMAYJLXBVUKIWBQZMEKKGXTLWTWCLWGIXPCFPYSJONEOBEECDVKWMIVXOQFDCPFLLXIQMNNMGCRPOXWNUOYBJFBAHUDUFWFWPQQXHZXGFVAGXYIQFHQBEFTBDSMPASYSJHKDMSJBSYGFODRGGHNVUFUKOEVAOXQTMTQQXLUTCMOVMUCLDTNKABLZYBBFSTJAFBQGVLVGPHTSBYPWWUWFXGNXECPHGXZXDABXPYDWTKAHABBJHVVSUJGDTHNPIDKMSYNJYQCWAMASKJXPACTHENMYRUNHFDRUCGBVLNCJAABYXGOXELCGHVEDWWDHRIHEBLMMUUWIXVYUBNRJBASNJELAOCULEMAFVIZDNOAQZQAGXAGOQUAVDTQVAIKGZSNCZVUPBHVBEXZXWGSEDUURKYYEZEWYOKUQQNZIWZZCYPHPHGMFVTVMYW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