Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
A141107_Potencia
//Title of this code #include <stdio.h> int main(void) { short base, exponente; long potencia; short aux; printf("Base ........ ");scanf(" %hd", &base); printf("Exponente ... ");scanf(" %hd", &exponente); if(base == 0 && exponente == 0) { printf("\n\nError por indeterminación\n\n\n"); } else { aux = exponente; potencia = 1; while(aux != 0) { potencia *= base; aux--; } printf("\n\n%hd elevado a %hd es igual a %ld\n\n\n", base, exponente, potencia); } return 0; }
run
|
edit
|
history
|
help
0
1.3 Max threads
llist.h
A_141117_Primo02
A_141121_factorial02
lab pro v.05
Simple Calculator v1.0
14th Dec Project1 v0.5
A_141124_arrayMaxMin02
Star 1,3
recurs3