Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- void main()
- {
- setlocale(LC_ALL, "rus");
- const float pe = 3.1416;
- float R1, R2;
- cout << "введите внешний радиус" << endl; // ввод внешнего радиуса
- cin >> R2;
- cout << "введите внутренный радиус" << endl; // ввод внутреннего радиуса
- cin >> R1;
- cout << "Площадь кольца=" << R2 * R2*pe - R1 * R1*pe << endl; // вывод площади
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement