Вопрос школьника по предмету Информатика
Определите значение переменной а после исполнения данного алгоритма: a := 4; b := 8 + 2 * a; a := b / 2 * a;
Ответ учителя по предмету Информатика
а: = 4
b: = 8 + 2 * a = 8 + 2 * 4 = 16
а: = b / 2 * a = 16 / 2 * 4 = 16 / 2 = 8 * 4 = 32
Ответ: а: = 32
Похожие вопросы от пользователей
Complete the sentences with the verbs from the box. Use them in present, past or future simple passive.
bury, respect, make, adm ire, contribute, share, im prove, study
1) The beautiful StPaul’s Cathedral always … by tourists. 2) Thefa mous novel “W ar and Peace” by Leo Tolstoy … next year. 3) Many Russian tsars … in Peter and Paul Cathedral in the previous centuries. 4) The money we’ve got … between us next Saturday. 5) I am sure that such people never … in the past, never … now and never … in the future. 6) I don’t know when this discovery … . 7) I ’m sure our project … some day. 8) A lot of pictures … to our school newspaper last week.