Horje
find power of a number in c Code Example
find power of a number in c
#include <stdio.h>  
#include <math.h>  
int main ()  
{  
// declare base and exp variable   
int base, exp;  
int result; // store the result  
printf (" Enter the base value from the user: ");  
scanf (" %d", &base); // get base from user  
printf (" Enter the power value for raising the power of base: ");  
scanf (" %d", &exp); // get exponent from user  
  
// use pow() function to pass the base and the exp value as arguments  
result = pow ( base, exp);  
printf (" %d to the power of %d is = %d ", base, exp, result);  
return 0;  
}  




C

Related
series sort values Code Example series sort values Code Example
nginx reverse proxy nextcloud Code Example nginx reverse proxy nextcloud Code Example
select first row first column pyspark Code Example select first row first column pyspark Code Example
prime check in c Code Example prime check in c Code Example
roll binary c Code Example roll binary c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15