python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Unable to use exp() with a variable
This has been solved
I am trying to use exp() from math.h in C, but it is failing to compile
whenever I pass a variable as the argument. The following code works just fine
#include <math.h>
#inc...
MrGorbunov
Votes: 0
Answers: 0
Power function giving different answer than math.pow function in C
I was trying to write a program to calculate the value of x^n using a while loop:
#include <stdio.h>
#include <math.h>
int main()
{
float x = 3, power = 1, copyx;
int n = 22, copyn...
Abir Mondal
Votes: 0
Answers: 4
Why pow() function working correctly, only after saving it to a variable?
I were asked to c-program to accept two variables and print the answer when second variable is raised to the power of first variable. So I coded,
#include<stdio.h>
#include<math.h>
int x,...
ADHIROOBAN D
Votes: 0
Answers: 1