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

Вводится целое число С. Если -9<=C<=9 вывести величину числа в словес ной форме с учетом знака, в противном случае - предупреждающее сообщение и повторный ввод.

Ответы

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

Ответ:

Python

f = {1 : 'один', 2 : 'два', 3 : 'три', 4 : 'четыре', 5 : 'пять',

   6 : 'шесть', 7 : 'семь', 8 : 'восемь', 9 : 'девять'}

c=10

while not ((c>=-9) and (c<=9)):

      print('Введите число в диапазоне -9<=C<=9 ')

      c=int(input())

if c<0:

    r='минус'

else:

    r=''

 

c=abs(c)

print(r, f.get(c))

Похожие вопросы
Предмет: Окружающий мир, автор: адам35
Предмет: Английский язык, автор: Аноним
A lucky day

Use the simple past.


Yesterday I _______________ when my alarm clock _____________ .
(wake up) (ring)
My Mum_________ immediately. And she______________ me my breakfast in bed. (get up) (bring)
I _________ cereal and _____________ cocoa with milk.
(eat) (drink)
Then I __________ a shower and got dressed. I _____________ a nice t-shirt and the
(have) (choose)
trousers my grandma ______________ me in New York during the holidays.
(buy)
My goldfish ___________ towards me when he __________ me and I _________ him.
(swim) (see) (feed)
I _____________ Dad calling me. He asked me if I ____________ my lessons. I told
(hear) (know)
him I _____________ them by heart and he _______________ me to school.
(learn) (drive)
He ______________ me some pocket money to buy a croissant. I ___________ it and
(give) (take)
___________ thank you.
(say)
At school I ___________ a love letter in my locker. My secret girlfriend ____________
(find) (send)
it to me. I ___________ it in a hurry. She ____________ I was the most handsome
(read) (say)
boy in my class and It _____________ me feel great!
(make)
I _______________ her some earrings for her birthday. They _______________ me a
(buy) (cost)
lot of money but they’re beautiful.

After that, I ________ a maths test which I __________________ was a piece of cake
(have) (think)
(= very easy). I ____________________ everything.
(understand)
On the way home I __________ a rainbow.
(see)
After having dinner I __________ my homework and then _____________ to bed.
(do) (go)
I ______________ like a log in my car shaped bed. I _______________ I
(sleep) (dream)
_________ the Grand Prix.
(win)
I wish every day could be as perfect.


Предмет: Математика, автор: Annaalekseevna111
Предмет: Английский язык, автор: Bibinur11