Answer:
See explaination
Explanation:
#include <iostream>
#include<string.h>
using namespace std;
bool isPalindrome(string str, int lower, int upper){
if(str.length() == 0 || lower>=upper){
return true;
}
else{
if(str.at(lower) == str.at(upper)){
return isPalindrome(str,lower+1,upper-1);
}
else{
return false;
}
}
}
int main(){
string input;
cout<<"Enter string: ";
cin>>input;
if(isPalindrome(input,0,input.length()-1)){
cout<<input<<" is a palindrome"<<endl;
}
else{
cout<<input<<" is NOT a palindrome"<<endl;
}
return 0;
}
I think the answer is B. 10D
Answer:
Coins weigh less on the Moon.
Explanation:
Gravity is only 1/6th as strong on the Moon than it is on Earth. Where a nickle is about 5 grams on Earth, it is less than 1 gram on the Moon. Gravity is affected by the size of the planet or moon. The Moon is much less massive than the Earth.