Advertisement
Guest User

daikoda

a guest
Nov 15th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6.     int points, p, br = 0, x;
  7.     int m, n, b, r, d;
  8.  
  9.     cout << "Enter radius: ";
  10.     cin >> r;
  11.     cout << "Enter border: ";
  12.     cin >> b;
  13.     cout << "Enter a number of points: ";
  14.     cin >> points;
  15.  
  16.     while (br < points) {
  17.         cout << "m: "; cin >> m;
  18.         cout << "n: "; cin >> n;
  19.         d = m * n + n * m;
  20.         if (d <= r * r && n <= b) {
  21.             //broi tochki vuv figurata;
  22.         }
  23.  
  24.         br++;
  25.         cout << "Broi na prochetenite tochki: " << br << endl;
  26.  
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement