Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5.  
  6. void main()
  7. {
  8.     setlocale(LC_ALL, "rus");
  9.     const float pe = 3.1416;
  10.     float R1, R2;
  11.     cout << "введите внешний радиус" << endl; // ввод внешнего радиуса
  12.     cin >> R2;
  13.     cout << "введите внутренный радиус" << endl; // ввод внутреннего радиуса
  14.     cin >> R1;
  15.     cout << "Площадь кольца=" << R2 * R2*pe - R1 * R1*pe << endl; // вывод площади
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement