17:44 Reverse numbers | |
#include <iostream> using namespace std; int main() { int x,a(0); cin>>x; do{ a*=10; a+=x%10; x/=10; }while(x>0); cout<<a; return 0; } | |
|
Total comments: 0 | |
Site menu
Section categories
Search
Our poll
Statistics
Total online: 1 Guests: 1 Users: 0 |
Main » 2011 June 10 » Reverse numbers
|