(qbasic)подскажите как сделать так, что бы можно было вернуть на самое начало с очисткой экрана хочу сделать, что бы после ответа было: "хотите повторить? и если да, то программа запускается сначала. это же цикл? только не могу понять как его поставить вот: print "enter the coefficient a" input a print "enter the coefficient b" input b print "enter the coefficient c" input c let d = b ^ 2 - 4 * a * c let x = (-b + sqr(d)) / (2 * a) let y = (-b - sqr(d)) / (2 * a) print "the first root" print x print "the second root" print y print "the discriminant" print d
157
490
Ответы на вопрос:
Do cls print "enter the coefficient a" input a print "enter the coefficient b" input b print "enter the coefficient c" input c let d = b ^ 2 - 4 * a * c let x = (-b + sqr(d)) / (2 * a) let y = (-b - sqr(d)) / (2 * a) print "the first root" print x print "the second root" print y print "the discriminant" print d input "do you want to repeat? (y/n)", r$ loop until ucase$(r$) < > "y"
feedback = 'В Подсолнухах мне больше всего понравился заботливый персонал'
feedback_advert = feedback.find('заботливый персонал')
print(feedback[feedback_advert:])
Объяснение:
Популярно: Информатика
-
Zaayeva23.05.2021 12:41
-
никнейм8513.12.2020 12:37
-
penina112.06.2023 04:30
-
том5555120.06.2022 13:56
-
bersenevaksenia108.11.2022 06:20
-
хрустально20.10.2021 15:46
-
Миша2007200729.01.2021 15:53
-
андрюха8705.04.2022 14:28
-
ДаняПрохоров29.12.2020 09:01
-
Виктория1712104.07.2021 17:19