/*WAP TO FIND THE REVERSE OF A NUMBER USING TEMPLATE BASED FUNCTION.*/ #include #include template void revr(T n, T &rev) { while(n!=0) { rev=rev*10+n%10; n=n/10; } } void main() { clrscr(); long int n,rev=0; cout<<"\nEnter a multidigit number: "; cin>>n; revr(n,rev); cout<<"The reverse of the number is: "<