那一夜....
风在刮,雨在下
// 2.cpp : Defines the entry point for the console application.


// 整数反序输出

#include "stdafx.h"

#include "iostream.h"

   void main ()
   {
      int a,b,c;
      cin>>a;
      b=0;
      do{
        c=a%10; 
        a=a/10;
        b=b*10+c;
      }while(a);  //做判断

      cout<<b<<endl;

   }

 

posted on 2014-10-19 13:45  暮雨倾晨  阅读(2792)  评论(0编辑  收藏  举报