Предмет: Информатика, автор: Sanplay563

5. тестирование и откладка программы.
Необходимо ввести значения переменных при a>b, a (см. табл. 5.2—5.4)
Код на языке пайтон.

Приложения:

Ответы

Автор ответа: jerrymynigga
0

Ответ:

1.
a= 5 b= 8 i= 5 выполняемые действия= 5 < 8 (true)

a= 5 b= 8 i= 6 выполняемые действия= 5 < 8 (true)

a= 5 b= 8 i= 7 выполняемые действия= 5 < 8 (true)

a= 5 b= 8 i= 8 выполняемые действия= 5 < 8 (true)

2.
a=  8 b=  5 i= 8 выполняемые действия= 8 < 5 (false)

a=  8 b=  5 i= 7 выполняемые действия= 8 < 5 (false)

a=  8 b=  5 i= 6 выполняемые действия= 8 < 5 (false)

a=  8 b=  5 i= 5 выполняемые действия= 8 < 5 (false)

3. a=  5 b=  5 i= 5 выполняемые действия= 5 < 5 (false)


jerrymynigga: если честно, то мне задание не понятно
jerrymynigga: программа:
a,b = map(int,input().split())
if a for i in range(a,b+1):
print('a=',a,'b=',b,'i=', i, f'выполняемые действия= {a} < {b} (true)')
else:
for i in range(a, b-1,-1):
print('a= ',a,'b= ',b,'i=', i, f'выполняемые действия= {a} < {b} (false)')
Похожие вопросы
Предмет: Английский язык, автор: kot86rus
Нужен нормальный перевод,без переводчика
Hello, friends. Let me first introduce myself. My name is Ann or Anya for my friends. My surname or last name is Sokolova. I was born on the 2ndof October in Sochi, Krasnodarsky Krai. This is the most beautiful city in Russia situated onthe Black Sea coast.Now I ama first-year studentat the Technical Academy. In five years I'll be an engineer.
Now let me describe my appearance. I am tall andslimand have fair hair and blue eyes. My friends say that I am pretty. I think I am just good-looking. I love sports and music. I was very serious about acareeringymnasticswhen I was in the 5thform. But then I broke my arm and doctors didn't let me go in for gymnastics. I love to listen to modern music and dance. I dance a lot and I hope I am good at it. I also love swimming. I always swim in the Black sea when I visit my parents, my dear family.
I would like to tell you about my family. There are five people in our family. My father's name is Vladimir Stepanovich. He is a mathematicianby education and businessman by profession. My mother's name is Tatyana Petrovna. She is ahousewife. She has much work about the house because I have a younger sister. She is a pupil. My sister Natasha is in the fifth form. My grandmother, my mother's mother, lives with us. She is very kindand helps us a lot.
Our family is very friendly, we have many friends. In summer many relatives come to visit us. And, of course, they use a chanceto spendseveralweeks in beautiful Sochi.
In May I have finished school No 5 in Sochi. I did well in all the subjects but my favourite subjects at school were Physics and Computer Science. I also enjoyed English lessons.
I am very interested in learning English because I always wanted to become a programmer or maybe a businesswoman. I also think that the knowledge of foreign languages helps in everyday life and career.
Two years ago I travelled much around Europe. I have visited France, Germany, Belgium, the Netherlands and the United Kingdom. There the knowledge of English helped me a lot.
Предмет: Русский язык, автор: лизка180