Answer:
long fact(int n)
{
if(n<=1)//base case
return 1;
long p=fact(n-1);//recursive call.
return n*p;//returning the factorial.
}
Explanation:
Above written function is written in C++ language.It is a recursive function to find the factorial of the function.
If we enter a number equal to or less than 1 then the function returns 1. Then the recursive call is made and it is stored in the long variable p and the result is returned as n*p.
For a number to be palindrome, the reverse of the number and the original number must be the same.
<h3>The main program</h3>
The program written in Python, where comments are used to explain each line is as follows:
#This gets input for the number
num = input()
#This reverses the number
numrev = num[::-1]
#If the reverse and the original number is the same
if num == numrev:
#This prints Palindrome
print("Palindrome")
else:
#Otherwise, it prints Not palindrome
print("Not palindrome")
Read more about Python programs at:
brainly.com/question/26497128
Answer:
ExplanKelly arrives for work at a restaurant at 5:00 p.m. Once there, she washes and chops vegetables, then sets aside ingredients and organizes them for the cook. Kelly is most likely a
✔ Food Preparation Worker
.
Mark's work hours change every week, depending on when he is needed. He wears a suit and tie to work at an elegant restaurant. He greets guests and seats them in a waiting area. He then guides them to their tables. Mark is most likely a
✔ Host
Link to the object using the object dialog box then you can click the link
Rest your fingers gently on the home row or home keys.
Rest your palms on the keyboard.
Relax your fingers.
All the above are proper keyboard techniques apart from slouch in your chair. It is always recommended to sit up straight with your feet positioned on the floor for balance. Do not cross. Center your body to the H key and have your elbows at sides and bent about 90 degrees. Use correct fingering and deploy touch typing. These and many others will help develop optimal speed and accuracy and help prevent the development of stress injury.