1 символ = 1 бит ,1 байт =8 битам, 1 килобайт =1024 байтам
2048=16777216
Doc-текстовый файл,значит proba.doc
Var a,b:real;
begin
read(a,b);
if a>b then
begin
a:=a-b;
b:=2*b+a;
end
else
begin
b:=b-a;
a:=2*a+b;
end;
write(a,' ',b)
<span>end.</span>
12122
1)2^2=4
2)4+1=5
3)5^2=25
4)25+1=26
5)26+1=27
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
void test(int);
int main()
{
int number;
cout << "Enter the number: ";
cin >> number;
if(number < 1000)
{
cout << "Error" << endl;
}
else
test(number);
return 0;
}
void test(int number)
{
int a, b, c;
c = number % 10;
number /= 10;
b = number % 10;
number /= 10;
a = number % 10;
cout << a << " * " << b << " * " << c << " = " << (a * b *c) << endl;
}