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

Дано двузначное натуральное число. Вывести на экран большую цифру. Если цифры равны, то вывести на экран, что «цифры числа равны»

пайтон,помогите плиз до 10.02

Ответы

Автор ответа: reveko00
1

Ответ:

ответа, к сожалению, не знаю. Но вот что пишут на одном сайте

Здесь нет проверки на то, чтобы вводимое число было двузначным, поэтому нужно вводить именно двузначное, иначе выдаст неверный результат.

var

N: byte; { Двузначное число }

begin

write('N = ');

readln(N); { <-- вводим число }

writeln;

{ Находим и выводим левую цифру: }

writeln(' Левая цифра: ', N div 10);

{ Находим и выводим правую цифру: }

writeln(' Правая цифра: ', N mod 10);

readln

end.


reveko00: прости если не помог ;(
Интересные вопросы
Предмет: Английский язык, автор: bobotik
VI. Переведите предложения яа русский язык и объясните употреб ление времен. (| 87, стр. 628)

А. 1. My friend had left London by the time I got there.

2. When I got to Novosibirsk, my friend had gone

to Moscow. 3. I didn’t ring him up before I had finished the work. 4. Had you been to Canada before you went to the Exhibition? 5. Though I came home at 11 last night, my son hadn’t gone to sleep yet.

В. 1. When I came back to Moscow, my friend went to Novosibirsk. When I came back to Moscow, my friend had gone to Novosibirsk. 2. Ann had spoken to the teacher when Mary came to show him her work. Ann was speaking to the teacher when Mary came to discuss the work she had done. 3. The meeting had begun before we got to the place. As soon as we got to the place, the meeting began.

4. When my friend rang me up, I was doing my home work. I had already done my homework when my friend rang me up. 5. Haven’t you done your homework yet? Why didn’t you do your homework yesterday? 6. When did you begin reading English books? They had read two English books by the end of the month. 7. We sent him a telegram this morning because we haven’t heard from him for a long time. 8. We went to Leningrad in the autumn. The day was fine, it wasn’t raining, and as soon as we got off the train, we went for a walk. My friend had never been to the city before and stopped in front of every building and every monument. “I’ve never seen a more beautiful city in my life,” he said to me.
Предмет: Алгебра, автор: akulifeeva21