It would be 1101010 in binary
What section is it? I did the same thing a bit ago on edhesive
No, Ad's. Extra Videos Created By Youtube, and thats about it lol oh and you can play the audio in the background of your phone, like lets say your listening to some music on youtube, and you want to play a game on your phone while listening to that tune on youtube, i just said screw youtube, i jailbroke my device and i have 20X more control of my youtube setting, etc.. and plus i can do more without youtube red tbh lol.
def recursiveFactorial(number):
if number > 1:
return number * recursiveFactorial(number-1)
else:
return 1
stringNum = input("Enter a positive integer: ")
num = int(stringNum)
print(recursiveFactorial(num))
Answer:
C++.
Explanation:
#include <iostream>
#include <string>
using namespace std;
////////////////////////////////////////////////////////////////////////////
int sumDigits(string alphanumeric) {
if (alphanumeric.length() == 1) {
if ((int(alphanumeric[0]) >= 48) && (int(alphanumeric[0]) <= 57)) {
cout<<int(alphanumeric[0]) - 48<<endl;
return (int(alphanumeric[0]) - 48);
}
else
return 0;
}
else {
if ((int(alphanumeric[0]) >= 48) && (int(alphanumeric[0]) <= 57)) {
cout<<int(alphanumeric[0]) - 48<<endl;
return int(alphanumeric[0]) - 48 + sumDigits(alphanumeric.substr(1, alphanumeric.length()-1));
}
else
return 0 + sumDigits(alphanumeric.substr(1, alphanumeric.length()-1));
}
}
////////////////////////////////////////////////////////////////////////////
int main() {
cout<<"Sum: "<<sumDigits("ab1c2d3e54");
return 0;
}