مقلوب عدد
#include <iostream.h>
#include <conio.h>
int main()
{
int n,s;
s=0;
clrscr();
cout<<"Enter a number:";
cin>>n;
while(n)
{
s=s*10+n%10;
n/=10;
}
cout<<"\nRevrse:"<<s;
}
یعنی 123.....321.....؟
یعنی 123.....321.....؟
بله
مقلوب همین میشه دیگه