#include <stdio.h>
char *input_1 = "11"; // al posto di argv[1];
char *input_2 = "3"; // al posto di argv[2];
int
{
int z = 1;
int i;
for (i = 1; i <= y; i++)
{
z = z * x;
}
return z;
}
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+CgpjaGFyICppbnB1dF8xID0gIjExIjsgLy8gYWwgcG9zdG8gZGkgYXJndlsxXTsKY2hhciAqaW5wdXRfMiA9ICIzIjsgIC8vIGFsIHBvc3RvIGRpIGFyZ3ZbMl07CgppbnQKZXhwIChpbnQgeCwgaW50IHkpCnsKICAgIGludCB6ID0gMTsKICAgIGludCBpOwoKICAgIGZvciAoaSA9IDE7IGkgPD0geTsgaSsrKQogICAgICB7CiAgICAgICAgeiA9IHogKiB4OwogICAgICB9CgogICAgcmV0dXJuIHo7Cn0KCmludAptYWluIChpbnQgYXJnYywgY2hhciAqYXJndltdKQp7CiAgICBpbnQgeDsKICAgIGludCB5OwogICAgaW50IHo7CgogICAgLy8gQ29udmVydGUgbGUgc3RyaW5naGUgb3R0ZW51dGUgZGFsbGEgcmlnYSBkaSBjb21hbmRvCiAgICAvLyBpbiBudW1lcmkgaW50ZXJpIGUgbGkgYXNzZWduYSBhbGxlIHZhcmlhYmlsaSB4IGUgeS4KCiAgICBzc2NhbmYgKGlucHV0XzEsICIlaSIsICZ4KTsKICAgIHNzY2FuZiAoaW5wdXRfMiwgIiVpIiwgJnkpOwoKICAgIHogPSBleHAgKHgsIHkpOwoKICAgIHByaW50ZiAoIiVpICoqICVpID0gJWlcbiIsIHgsIHksIHopOwoKICAgIHJldHVybiAwOwp9