Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- double log2 = 1.44269504088896340736;
- int userInput = 0;
- printf("Entrez un nombre x pour le calcul de log2(x) :\n");
- scanf("%d", &userInput);
- printf("log2(%d) = %f", userInput, log(userInput)*log2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement