码迷,mamicode.com
首页 > 其他好文 > 详细

今天学习打瞌睡 哎,写的都不是代码。估计电脑会因为我写的死机了

时间:2014-09-16 23:36:31      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:io   sp   代码   c   amp   r   bs   学习   print   

#include <stdio.h>
void main()
{
 int max=0,num1=0,z=0;
 printf("请输入一个数;");
 scanf("%d",&max);
 while (max)
  {
   num1=max%10;
   printf("%d",num1);
   max=max/10;
   printf("%d",num1);
  }
  
 {  
  z++;
  max/=10;
 }
   printf("输入的数字位数是:%d\n",z);
}

今天学习打瞌睡 哎,写的都不是代码。估计电脑会因为我写的死机了

标签:io   sp   代码   c   amp   r   bs   学习   print   

原文地址:http://www.cnblogs.com/DTH911/p/3975969.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!