Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System;
  2.  
  3. namespace work1CSharp
  4. {
  5.     class MainClass
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int counter = 0; //счетчик
  10.             while (true)
  11.             {
  12.                 // тут ввод x и y
  13.                 double x = 0, y = 0;
  14.                 if (Math.Pow(x, 2) + Math.Pow(y, 2) <= 4 & y <= 0)
  15.                 {
  16.                     counter++;
  17.                 }
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement