SHARE
TWEET

Untitled

a guest Dec 12th, 2019 76 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top