diff --git a/Intermediate/algorithms/printReverseOfNum.cpp b/Intermediate/algorithms/printReverseOfNum.cpp index 519954ee..3ff0ec9a 100644 --- a/Intermediate/algorithms/printReverseOfNum.cpp +++ b/Intermediate/algorithms/printReverseOfNum.cpp @@ -2,13 +2,16 @@ using namespace std; int main(){ - long long int num; + long long int num, reversed_num = 0, remainder; + cout << "Enter an number: "; cin>>num; - while(num>=1){ - int rev = num%10; - cout<