Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141106_Potencia
//Title of this code #include <stdio.h> int main(void) { double base; unsigned short exponente, i; double potencia; printf("Base ........ "); scanf(" %lf", &base); printf("Exponente ... "); scanf(" %hu", &exponente); i = exponente; potencia = 1; while(i != 0) { potencia *= base; i--; } printf("%lf elevado a %hu es %lf\n\n", base, exponente, potencia); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Practice
AVANCE DE PREGUNTA 5
Humko
20171116:FUNCIONES
Assignment 5 part 2
Project 3 part 2 Book v10.2
20171117_PITAGORAS
test
Assignment 7
sorted array
Please log in to post a comment.