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

Определите значение переменной b после выполнения алгоритма:
А) а:=2
b:=4
a:=2*a+3*b
b:=a:2*b

Б) a:=7
b:=4
a:=2*a+3*b
b:=a:2*b

B) a:=1
b:4
a:=2*a+3b
b:= a:2*b

Ответы

Автор ответа: MrMiner1
7

А)

a  | b

2  | .

2  | 4

16 | 4

16 | 32

Ответ: 32

Б)

a  | b

7  | .

7  | 4

26 | 4

26 | 52

Ответ: 52

В)

a  | b

1   | .

1   | 4

14 | 4

14 | 28

Ответ: 28


regilios: а:=2
b:=4
a:=2*a+3*b // 4+12=16
b:=a:2*b //16 mod 8 = 2
где ты тут 32 нашёл
MrMiner1: a/2*b
MrMiner1: 16/2*4
MrMiner1: сколько будет юный ты наш математик
MrMiner1: скобки где ты увидел вокруг 2*4
MrMiner1: и mod - остаток от деления, а не целочисленное деление
Похожие вопросы
Предмет: Геометрия, автор: М0Л0Т0В
Предмет: Английский язык, автор: bogdan090121
помогите пожалуйста, прошу мне надо срочно. прошууууу
1 задание:
Read the situations and label the meaning of the modal verbs.

Слова для выбора: Asking for permission, Giving permission, Ability Suggestion, Request Prohibition, Lack of ability.
1. __
A: I can swim very well. What can you do very well?
B: I can sing!
2 __
A: You can't go to the cinema until you do your homework!
B: OK, mum. I'll do it now.
3 __
A: Can you help me, please?
B: Sure, no problem!
4 __
A: Can I go out, Mrs Johnson?
B: Yes, Peter, of course.
5 __
A: What shall we do this weekend?
B: We can go camping.
6 __
A: Let's go cycling, John.
B: Sorry, I can't ride a bike.
7 __
A: I want chocolate!
B: You can eat some chocolate if you eat the soup.

2 задание:
Read the situations and choose the correct options
Нужно вставить:
can
can't
1
I don't have a bike, so l __ ride it.
2
My son __ draw very well. His pictures are very beautiful.
3
It's dark in the room, and I ___ see anything.
4
My daughter has a good voice. She __ sing.
5
My finger is broken. I __ write.
6
We __ move that sofa. It's too heavy.
7
My father says I'll become a famous footballer. I __ play football very well.

3 Задние:
Use the words to make questions and answers

1
this, you can, Can, seat, take, l, Yes.
А: __ __ __ __ __?
В: __ __.
2
cinema, can't, can, No, to the, we go, you.
A: Mum, __ __ __ __?
В: __ __ __.
3
window, can, Can I, Yes, the, open, you.
А: __ __ __ __ , please?
В: __ ___ __.
4
with, can, Pete, Yes, come, us, he, Can.
А: __ __ __ __ __?
В: __ __ __.
5
your, can't, i, No, take, mobile, you, can.
А: Sam, __ __ __ __ __?
В: __ __ __.
Предмет: Математика, автор: Kruta12345