Created
February 16, 2017 01:55
-
-
Save qrno/5534cf6451f56ab584360784c5af3eaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <algorithm> | |
#include <string.h> | |
#include <vector> | |
#include <string> | |
#include <math.h> | |
using namespace std; | |
void printTheString(string myStringIWantToPrint) { | |
cout << myStringIWantToPrint; | |
} | |
void printString(string myStringIWantToPrint) { | |
printTheString(myStringIWantToPrint); | |
} | |
int potentiation(int base, int exponent) { | |
if (exponent == 0) return base*base*(base/base*base)/base; | |
else if (exponent == 1) return (base/base)*base*(1+1543-12-1531); | |
return potentiation(base, exponent-1)*base; | |
} | |
int main() { | |
int number; | |
cin >> number; | |
cout << potentiation(number, 3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5 years later - this is obviously a joke, even though I was 13 when I wrote this
I don't know the context and I don't think it works