Attachment ''


   1 # -*- coding: utf-8 -*-
   2 from math import *
   3 a,b,c=input("Введите коэффициенты квадратного уравнения через запятую: ")
   4 D=b*b-4*a*c
   5 if D>0:
   6   print "Корни уравнения:",(-b+sqrt(D))/(2*a),(-b-sqrt(D))/(2*a)
   7 elif D==0:
   8   print "Корень уравнения:",-b/(2*a)
   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.