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

вот училка задала на отработку по программированию на паскаль ! решите пж :)
" Дано целое число. Определить, является ли оно кратным 5 и 10 "

Ответы

Автор ответа: mnv1962
0
uses crt;
var
a:integer;
    begin
        clrscr;
             readln(a);
                  if (a mod 5=0)and(a mod 10=0)then
                      writeln('кратное')
                  else
                       writeln('не кратно');
    readkey;
end.

Аноним: Достаточно if (a mod 10=0) then, потому что число, кратное 10, всегда кратно и пяти. Зачем делать лишнюю проверку? При написании программы (а лучше, при составлении алгоритма) полезно немного подумать.
Похожие вопросы
Предмет: Английский язык, автор: Даша6741
Предмет: Қазақ тiлi, автор: YoungHolmes
Предмет: Русский язык, автор: александра377
Предмет: Английский язык, автор: ifh4
1. Match the words or expressions with their meanings

1. recorder A раздражающий

2. loud B ужасы

3. drums C ноутбук

4. annoying D громкий

5. soap opera E получить работу

6. horror F купить дом

7. laptop G закончить школу

8. get a job H флейта

9. leave school I мелодрама

10. buy a house J барабаны




2. Water always ___ at 100 degrees.

a. is boiling

b. boil

c. boils

3. I know my bad habit: I often ___ too loudly.

a. talk

b. talks

c. am talking

4. She__ a shower at the moment

a. is taking

b. takes

c. take

5. Marta usually ___ jeans.

a. wear

b. is wearing

c. wears

6. Dave ___ a very interesting book right now.

a. reads

b. is reading

c. read






7. Open the brackets, using verbs in the form of Past Simple or Past Continuous.

a. The rain (to start) while we (to drive) home.

b. He (to wash) his face when somebody (to knock) at the door.

c. The young people (to dance) when I (to come) to the party.

d. When he (to wash) the dishes, he (to break) a plate.



8. Open the brackets, using the right form of adjectives.

a. A train is __ (fast) than a bus.

b. Greg felt __(bad) yesterday than the day before

c. He is the…………(good) student in our class

d. He is one of…………(rich) people in the world.



9. Write sentences using the correct form of be going to.

a. I … (fly) to the Moon.

b. We … (have) three kids.

c. My wife … (travel) all over the world.

d. I … (open) a flying school in England.





10. Speaking (answer these questions, you should write 5-6 sentences)

a. What kind of music do you like?

b. How often do you watch TV?

c. Imagine your future.