Есть ответ 👍

Напишите программу,которая находит все корни уравнения в диапозоне x от -100 до +100 :

ix^2 - 5x + 2i = 2

193
232
Посмотреть ответы 2

Ответы на вопрос:

cako2004
4,4(36 оценок)

c = int(input('enter 2 to start'))

while c ! = 1:

    import math as m

    a = int(input('write a: '))

    b = int(input('write b: '))

    c = int(input('write c: '))

    d = (b ** 2) - (4 * a * c)

    print ('d =',d)

    if d > 0:

        print('d > 0')

        x = (-b + (m.sqrt( / (2 * a)

        x1 = (-b - (m.sqrt( / (2 * a)

        print ('x1 =',x)

        print ('x2 =',x1)

    elif d == 0:

        print('d = 0')

        x = -b / (2 * a)

        print ('x =',x)

    else:

        print('d < 0')

        print ('no roots')

    c = int(input('enter 1 to quit or 2 to repeat'))

ulagrac8
4,7(96 оценок)

Все показано на фото. И расписано
Составьте таблицу истиности для логической функции F(A,B,C) = не (A и B) или C

Популярно: Информатика