i am a learner.
#include <iostream.h>
#include<iostream.h>
using namespace std;
main()
{
int no = 0, remainder;
int n, reversedno = 0, remainder;
cout << "Enter an integer: ";
cin >> n;
while(n != 0)
{
remainder = n%10;
reversedno = reversedno*10 + remainder;
n /= 10;
}
cout << "Reversed no is = " << reversedno;
return 0;
}
great my brother
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You have written #include <iostreem.h> twice?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit