Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ///2889
  2. #include <iostream>
  3. #include <iomanip>
  4. using namespace std;
  5. long double pi = 3.14159265358;
  6. long double r, arie, perimetru;
  7. int main()
  8. {
  9. cin >> r;
  10. arie = pi * r * r;
  11. perimetru = 2 * pi * r;
  12. cout << fixed <<setprecision(6) << arie << ' ' << perimetru;
  13. return 0;
  14. }
  15. ///2603
  16. #include <iostream>
  17. using namespace std;
  18. double a;
  19. int main()
  20. {
  21. cin >> a;
  22. cout << (int)(a * 10) % 10;
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement