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

Домашнее задание
1. Напишите программу, которая находит сумму и произведение двух целых чисел, введённых с клавиатуры.
Например, при вводе чисел 4 и 7 мы должны получить ответ
4+7=11
4*7=28

2. Ввести число, обозначающее количество секунд. Вывести то же са-мое время в минутах и секундах.
Пример:
Введите число секунд: 175
2 мин. 55 с

Ответы

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

Если нужен паскаль:

1.

var

 a,b:integer;

begin

 readln(a,b);

 writeln(a,'+',b,'=',a+b);

 writeln(a,'*',b,'=',a*b);

end.

2.

var

 n,c,m,h:integer;

begin

 readln(n);

 m:=n div 60;

 c:=n mod 60;

 if m>=60 then

   begin

     h:=m div 60;

     m:=m mod 60;

     if m<>0 then

       if c<>0 then

         write(h,'ч ',m,'мин ',c,'с')

       else

         write(h,'ч ',m,'мин ')

     else

       if c<>0 then

         write(h,'ч ',c,'с')

       else

         write(h,'ч');

   end

     else

       if m<>0 then

         if c<>0 then

           write(m,'мин ',c,'с')

         else

           write(m,'мин ')

       else

         write(c,'с');

end.

Похожие вопросы
Предмет: Английский язык, автор: Anna732006
Предмет: Другие предметы, автор: Danila3231
Предмет: Английский язык, автор: oskina7878
1.Read the text and say if the sentences are true, false or not said

- Hi Daniel! Shall we go to the cinema on Saturday? I want to see the new James Bond film.

- I can’t go on Saturday, Carl. I’m helping my Dad in his shop. But I’m not working on Sunday. Let’s go on Sunday afternoon.

- Oh, on Sunday afternoon I’m going with my Mum and Dad to see my Grandma and Grandpa. They have moved into a new house.

- Let’s meet on Monday after school. We can have a burger and a coke at the local cafe, then see the film at six o’clock.

- Okay, that’s a good idea. If there is no room to see the James Bond film, we could see the new Pirates film instead. My friend told me it’s very exciting.

- Right, we’ll go on our bikes. I’ll meet you at five o’clock.



1. Carl tells Daniel he wants to go to the stadium.

A) True B) False C) Not said

2. Daniel will be busy on Saturday.

A) True B) False C) Not said

3. Daniel has to do a lot of work on Sunday.

A) True B) False C) Not said

4. Carl’s Grandma and Grandpa are happy in their new house.

A) True B) False C) Not said

5. Daniel and Carl go to the same school.

A) True B) False C) Not said

6. Daniel says they can buy fast food at the local cafe.

A) True B) False C) Not said

7. The local cafe sells ice cream.

A) True B) False C) Not said

8. The film starts at five o’clock.

A) True B) False C) Not said

9. They plan to see the new Pirates film if there are no tickets for the James Bond film.

A) True B) False C) Not said

10. Carl and Daniel have bikes.

A) True B) False C) Not said



2.Put in the necessary prepositions

11. get up … half past nine

A) on B) in C) at

12. be born … 1998

A) on B) in C) at

13. sleep … night

A) on B) in C) at

14. work … Monday afternoon

A) on B) in C) at

15. live … the outskirts

A) around B) on C) under

16. come back … the 3rd June

A) on B) in C) at

17. relax … the weekend

A) out B) in C) at

18. travel … two weeks

A) during B) for C) since

19. do something … purpose

A) by B) at C) on

20. take something … mistake

A) by B) at C) on



3.Choose the correct alternatives

21. There were … people at the open-air concert.

A) only a few B) not much C) only a little

22. I am so smart, … ?

A) isn’t it B) isn’t I C) aren’t I

23. Julie works a lot. She … hard.

A) is used to work

B) is used to working

C) used to working

24. What … like? She is kind and helpful.

A) is Jane B) does Jane C) does Jane look

25. How did you get there? … .

A) By feet B) On his feet C) On foot

26. The car is dirty. It needs … .

A) to wash B) washed C) washing

27. Our teacher wears … .

A) big brown glasses

B) brown big glasses

C) glasses big brown

28. He … to get up early every morning.

A) doesn’t have B) hasn’t C) has not

29. She lives … from school than me.

A) far B) farther C) more farther

30. How long … Paul?

A) do you know

B) have you known

C) has you known



4.Find the right words to complete the sayings

31. There is no place … home.

A) as B) like C) about

32. A friend in need is a friend … .

A) really B) always C) indeed

33. When the cat is away, the … will play.

A) birds B) mouse C) mice

34. An … a day keeps the doctor away.

A) apple B) orange C) exercise

35. Walls have … .

A) eyes B) ears C) hands

36. A Jack of all trades is master of … .

A) nothing B) neither C) none

37. Tomorrow come … .

A) never B) late C) seldom

38. Never put off till … what you can do today.

A) yesterday B) Monday C) tomorrow

39. … is nothing without health.

A) Money B) Wealth C) Happiness

40. Better late than … .

A) never B) always C) seldom