Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main()
- {
- int n;
- scanf("%i", &n);
- double ex = 2.7182818284590452353602875;
- ex = round(ex*pow(10,n))/pow(10,n);
- printf("%f", ex);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement