Attachment 'dorcircle.py'

Download

   1 # -*- coding: utf-8 -*-
   2 
   3 from math import *
   4 
   5 x,y,xc,yc,r=input("Введите через запятую координаты точки, центра окружности и её радиус:")
   6 
   7 if (x-xc)**2+(y-yc)**2 > r*r:
   8   print "Точка не принадлежит окружности"
   9 else:
  10   print "Точка принадлежит окружности"

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.