亚洲国产福利在线一二三观看_精品国产伦一区二区三区欲臀_国产a∨视频精品视频护士_精品八戒人妻少妇av

江蘇省高校計(jì)算機(jī)等級(jí)考試命題研究院 江蘇省高校計(jì)算機(jī)等級(jí)考試輔導(dǎo)
2014春江蘇省二級(jí)C上機(jī)真題第1套

源代碼如下:

#include <stdio.h>
#include <conio.h>
double tail(double x, int n)          
{   int m;
    while(x>=1)
      {  m++;   x=x/10;  }
    while(x<0.1)
      {  m--;    x=x*10;  }
  *n=m;
  return x;
}
int main()
{  double x,m;
int n, x_sign=1;
   do
   {  printf("please input the x:");
      scanf("%lf,&x");
   }while(0=x);
   if(x<0)
   {  x_sign=-1;      x=-x;}
   m=tail(x, &n);
   m=x_sign*m;
   printf("%lfe%d", m,n);
   getch();
   return 0;
}