2.
123(10) → 1111011(2)
123(10) → 173(8)
123(10) → 7B(16)
456(10) → 111001000(2)
456(10) → 710(8)
456(10) → 1C8(16)
3.
100011(2) → 43(8)
100011(2) → 35(10)
100011(2) → 23(16)
101001011(2) → 513(8)
101001011(2) → 331(10)
101001011(2) → 14B(16)
1110010001(2) → 1621(8)
1110010001(2) → 913(10)
1110010001(2) → 391(16)
4.
54321(8) → 101100011010001(2)
54525(8) → 101100101010101(2)
777(8) → 111111111(2)
1AB(16) → 110101011(2)
A1B(16) → 101000011011(2)
E2E4(16) → 1110001011100100(2)
E7E5(16) → 1110011111100101(2)
#include <iostream>
using namespace std;
int main()
{
int a,b,c,k;
cin>>a>>b>>c;
k=0;
for(int i=a;i<=b;i++){
if(i % c==0){k=k+1; }
}
cout<<k<<endl;
}
1. верно
2. не верно
3. верно
4. верно
5. верно
6. не верно
const h=0.7;
var a, b, x, y: real;
begin
writeln(' [-1,8] s shagom 0.7 ');
a:=-1;
b:=8;
writeln('--------------------------');
writeln('| X | Y |');
writeln('--------------------------');
x:= a;
while x<= b do begin
y:=(x*x*x)-sqr(3*x)+9;
writeln('|', x:9:2, ' |' , y:9:2, ' |');
x:= x+h;
end;
writeln('--------------------------');
end.
Вот) Тут используется формула
var
D, y, x, v: real;
begin
writeln('Enter x, y and v:');
readln(x, y, v);
y := exp(5*ln(y)); { y^5 }
x := exp(12*ln(x)); { x^12 }
v := exp(7*ln(v)); { v^7 }
v := exp(9*ln(cos(v))); { cos(v^7)^9 }
writeln(x, ' ', y, ' ', v);
end.