Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Minus pointer
Spring 2017 Lab 4 v1.1
Address.c
Project 3 Part 1 v0.5
20171127_ARRAY_PRIMOS
finding 3 ones in a row
eliminate_duplicates.c
Matrices de cadenas con *punteros
HW4e5
Factorial_LOOP
stackse - search stackoverflow differently
Please log in to post a comment.