Question: Hello I would like to solve this now please with the output Convert the following Simple C++ program into Call By Value Function program Call
Hello I would like to solve this now please with the output
- Convert the following Simple C++ program into
- Call By Value Function program
- Call By Reference program
#include
using namespace std;
int main()
{
int n,r,sum=0,temp;
cout<<"Enter the Number=";
cin>>n;
temp=n;
while(n>0)
{
r=n%10;
sum=(sum*10)+r;
n=n/10;
}
if(temp==sum)
cout<<"Number is Palindrome.";
else
cout<<"Number is not Palindrome.";
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
