#include <stdio.h>
#include <math.h>
int hiperfatorial(int n) {
double ret = 1.0;
do ret
*= pow(n
, n
); while (n
-- > 1); return (int)ret;
}
int main(void) {
int n;
printf("\nDigite um numero: "); printf("\nO hiperfatorial desse numero eh: %d", hiperfatorial
(n
)); }
//https://pt.stackoverflow.com/q/255963/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CgppbnQgaGlwZXJmYXRvcmlhbChpbnQgbikgewogICAgZG91YmxlIHJldCA9IDEuMDsKICAgIGRvIHJldCAqPSBwb3cobiwgbik7IHdoaWxlIChuLS0gPiAxKTsKICAgIHJldHVybiAoaW50KXJldDsKfQoKaW50IG1haW4odm9pZCkgewoJaW50IG47CglwcmludGYoIlxuRGlnaXRlIHVtIG51bWVybzogIik7CglzY2FuZigiJWQiLCAmbik7CglwcmludGYoIlxuTyBoaXBlcmZhdG9yaWFsIGRlc3NlIG51bWVybyBlaDogJWQiLCBoaXBlcmZhdG9yaWFsKG4pKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjU1OTYzLzEwMQ==