Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  64
Language: C/C++
Code:
     #include <iostream>
#include <cmath>
 
void Reverse(int n){
    if(!n)
        return;
 
    std::cout << n%10;
    Reverse(n/10);
}
 
 
int main(){
    int n;
    std::cout << "Enter number: ";
    std::cin >> n;
    Reverse(fabs(n));
 
    return 0;
}
          
Comments: