Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int points, p, br = 0, x;
- int m, n, b, r, d;
- cout << "Enter radius: ";
- cin >> r;
- cout << "Enter border: ";
- cin >> b;
- cout << "Enter a number of points: ";
- cin >> points;
- while (br < points) {
- cout << "m: "; cin >> m;
- cout << "n: "; cin >> n;
- d = m * n + n * m;
- if (d <= r * r && n <= b) {
- //broi tochki vuv figurata;
- }
- br++;
- cout << "Broi na prochetenite tochki: " << br << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement