Есть ответ 👍

2. определи значения переменной с после выполнения фрагмента алгоритма a: =15 b: =30 b: =a*2-b/2; if a> b then c: =3*bb-a/3 else c: =3*a-4*b; 3. каково значение примет переменная у после выполнения фрагмента программы y: =1 x: =15 while x> 5 do begin x: =x-3; y: =y*x end 5 переведи десятичное число 231 (10) степени в двоичную и шеснадцатиричную систему счисления 6 переведи двоичное число 1001101(2) в десятичную систему счисления.

293
438
Посмотреть ответы 2

Ответы на вопрос:

6hh6h6h
4,7(3 оценок)

Надеюсь будет понятно
notty12
4,8(83 оценок)

#include< iostream> #include< cstring> using namespace std; int main() { string input=""; string key=""; std: : cout< < "enter the string to be coded: \t"; std: : getline(std: : cin,input); std: : cout< < "\nenter key: \t"; std: : getline(std: : cin,key); int keyl=key.length(); int inputl=input.length(); for(int j=0; keyl< inputl; j++)     {         key+=key[j]; keyl++;     } cout< < "\nkey: \t"< < key; string encrypted=""; for(int i=0; i< keyl; i++)       {               encrypted+=key[i]^input[i];         }   std: : cout< < "\nencrypted data: \t"< < encrypted; string unencrypted=""; for(int i=0; i< keyl; i++)         {         unencrypted+=encrypted[i]^key[i];         } std: : cout< < "\nunencrypted: \t"< < unencrypted; return 0;   }

Популярно: Информатика