Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7. int n;
  8. scanf("%i", &n);
  9. double ex = 2.7182818284590452353602875;
  10. ex = round(ex*pow(10,n))/pow(10,n);
  11. printf("%f", ex);
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement