#include<stdio.h>
int main() {
int valor;
int resultado = 1;
while (valor > 0) {
resultado *= valor;
valor--;
}
printf("O exponencial é: %d\n", resultado
); }
//https://pt.stackoverflow.com/q/237565/101
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBtYWluKCkgewogICAgcHJpbnRmKCJDb2xvcXVlIHVtIHZhbG9yOiAiKTsKICAgIGludCB2YWxvcjsKICAgIHNjYW5mKCIlZCIsICZ2YWxvcik7CiAgICBpbnQgcmVzdWx0YWRvID0gMTsKICAgIHdoaWxlICh2YWxvciA+IDApIHsKICAgICAgICByZXN1bHRhZG8gKj0gdmFsb3I7CiAgICAgICAgdmFsb3ItLTsKICAgIH0KICAgIHByaW50ZigiTyBleHBvbmVuY2lhbCDDqTogJWRcbiIsIHJlc3VsdGFkbyk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzIzNzU2NS8xMDE=