Skip to content

Instantly share code, notes, and snippets.

@qrno
Created February 16, 2017 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrno/5534cf6451f56ab584360784c5af3eaa to your computer and use it in GitHub Desktop.
Save qrno/5534cf6451f56ab584360784c5af3eaa to your computer and use it in GitHub Desktop.
#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);
}
@qrno
Copy link
Author

qrno commented Mar 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment