Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace work1CSharp
- {
- class MainClass
- {
- static void Main(string[] args)
- {
- int counter = 0; //счетчик
- while (true)
- {
- // тут ввод x и y
- double x = 0, y = 0;
- if (Math.Pow(x, 2) + Math.Pow(y, 2) <= 4 & y <= 0)
- {
- counter++;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement