1)
ввод(а)
ввод(б)
р=2*(а+б)
вывод(р)
2)
40 div 6 = 6
40 mod 6 = 4
3 div 5 = 0
3 mod 5 = 3
500 div 10 = 50
37 div 10 = 3
23 mod 5 = 3
37 mod 10 = 7
23 div 5 = 4
80 div 6 = 13
80 mod 6 = 2
500 mod 10 = 1
6 div 4 = 1
6 div 4 +5= 6
35 mod (6 div 4 +5)= 5
35 mod (6 div 4 +5) -10= -5