#include <stdio.h>
char *input_1 = "11"; // al posto di argv[1];
char *input_2 = "3"; // al posto di argv[2];
{
if (x == 0)
{
return 0;
}
else if (y == 0)
{
return 1;
}
else
{
return (x
* exp (x
, y
-1)); }
}
int
main (int argc, char *argv[])
{
int x;
int y;
int z;
// Converte le stringhe ottenute dalla riga di comando
// in numeri interi e li assegna alle variabili x e y.
printf ("%i ** %i = %i\n", x
, y
, z
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpjaGFyICppbnB1dF8xID0gIjExIjsgLy8gYWwgcG9zdG8gZGkgYXJndlsxXTsKY2hhciAqaW5wdXRfMiA9ICIzIjsgIC8vIGFsIHBvc3RvIGRpIGFyZ3ZbMl07CgppbnQgZXhwIChpbnQgeCwgaW50IHkpCnsKICAgIGlmICh4ID09IDApCiAgICAgIHsKICAgICAgICByZXR1cm4gMDsKICAgICAgfQogICAgZWxzZSBpZiAoeSA9PSAwKQogICAgICB7CiAgICAgICAgcmV0dXJuIDE7CiAgICAgIH0KICAgIGVsc2UKICAgICAgewogICAgICAgIHJldHVybiAoeCAqIGV4cCAoeCwgeS0xKSk7CiAgICAgIH0KfQoKaW50Cm1haW4gKGludCBhcmdjLCBjaGFyICphcmd2W10pCnsKICAgIGludCB4OwogICAgaW50IHk7CiAgICBpbnQgejsKCiAgICAvLyBDb252ZXJ0ZSBsZSBzdHJpbmdoZSBvdHRlbnV0ZSBkYWxsYSByaWdhIGRpIGNvbWFuZG8KICAgIC8vIGluIG51bWVyaSBpbnRlcmkgZSBsaSBhc3NlZ25hIGFsbGUgdmFyaWFiaWxpIHggZSB5LgoKICAgIHNzY2FuZiAoaW5wdXRfMSwgIiVpIiwgJngpOwogICAgc3NjYW5mIChpbnB1dF8yLCAiJWkiLCAmeSk7CgogICAgeiA9IGV4cCAoeCwgeSk7CgogICAgcHJpbnRmICgiJWkgKiogJWkgPSAlaVxuIiwgeCwgeSwgeik7CgogICAgcmV0dXJuIDA7Cn0=