Ответ:
1000001110
Объяснение:
453(в восьмеричной) = 100101011(в двуичной)
100101011 + 11100011 = 1000001110
Алгоритм подсчета числа и суммы элементов
int z[20];
int s=0,n=0;
for(int i=0;i<20;i++)
if(z[i]<8&&z[i]>2)
{
n++;
s+=z[i];
}
cout<<"sum="<<s<<", num of elem="<<n;
6)
1-b; 2-d; 3-a; 4-c.
7)На C++
#include <iostream>
using namespace std;
int main(void)
{
int age = 0;
cout << "Input your age: ";
cin >> age;
if (age > 18 || age == 18)
cout << "You have the right to vote." << endl;
else
cout << "You don't have the right to vote." << endl;
system("pause");
return 0;
}
Вопрос про Веб-страницу:
1
2.Тег.
3.Уменьшается.
procedure Minmax(var a, b: integer);
var min, max: integer;
begin
if a < b then min := a else min := b;
if a > b then max := a else max := b;
a := min;
b := max;
end;