Guest User

Untitled

a guest
Dec 12th, 2019
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data