Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///2889
- #include <iostream>
- #include <iomanip>
- using namespace std;
- long double pi = 3.14159265358;
- long double r, arie, perimetru;
- int main()
- {
- cin >> r;
- arie = pi * r * r;
- perimetru = 2 * pi * r;
- cout << fixed <<setprecision(6) << arie << ' ' << perimetru;
- return 0;
- }
- ///2603
- #include <iostream>
- using namespace std;
- double a;
- int main()
- {
- cin >> a;
- cout << (int)(a * 10) % 10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement