Search
 
SCRIPT & CODE EXAMPLE
 

C

exponent calculator

#include <math.h>
#include <stdio.h>

int main() {
    double base, exp, result;
    printf("Enter a base number: ");
    scanf("%lf", &base);
    printf("Enter an exponent: ");
    scanf("%lf", &exp);

    // calculates the power
    result = pow(base, exp);

    printf("%.1lf^%.1lf = %.2lf", base, exp, result);
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: how to reset to read from beginning of file c 
C :: payement des véhicules a la sortie de station de langue c 
C :: + ********************* 
C :: sdl close ev 
C :: comando para ejecutar hilos en c 
C :: gsl matrix invert 
C :: letter in alphabet or not 
C :: c %s 
C :: what is float in c 
C :: calculate max of three numbers using ternary operator in c 
C :: how to compare string in c 
C :: c get string 
C :: arduino analogwrite 
Dart :: flutter rounded bottom sheet 
Dart :: elevated button size flutter 
Dart :: datetime dart format print 
Dart :: reverse srring in dart 
Dart :: flutter snackbar circular shape rounded circle 
Dart :: FirebaseOptions cannot be null when creating the default app 
Dart :: How can I add shadow to the widget in flutter? 
Dart :: into to char dart 
Dart :: raisedbutton flutter 
Dart :: close drawer flutter 
Dart :: flutter create app command 
Dart :: six_ft_apart_rounded 
Dart :: convert object to int flutter 
Dart :: sign out from firebase flutter 
Dart :: convert future<list list in flutter 
Dart :: dart split string 
Dart :: shape property of card in flutter 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =