Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d545ff

Browse files
Merge pull request #204 from adarsh1mehra/master
Log_conversion
2 parents f219441 + 0cabe20 commit 4d545ff

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎Log_Conversion.c‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <stdio.h>
2+
#include <math.h>
3+
4+
int main(int argc, const char * argv[], value)
5+
{
6+
/* Define temporary variables */
7+
double value;
8+
double result;
9+
10+
/* Calculate the log of the value */
11+
result = log(value);
12+
13+
/* Display the result of the calculation */
14+
printf("The Natural Logarithm of %f is %f\n", value, result);
15+
16+
return 0;
17+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /