Bai Tap

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

1.

6
11112 = (1x23) + (1x22) + (1x21) +(1x10) = 8 + 4 + 2 + 1 = 1510

10110111012= (1x29) + (0x28) + (1x27) + (1x26) + (0x25) + (1x24) + (1x23) + (1x22) + (0x21) + (1x20)
= 512 + 0 + 128 + 64 + 0 + 16 + 8 + 4 +1 = 73310
1.7
125610 --> 1256 : 2 = 628 , 0
628 : 2 = 314 , 0
314 : 2 = 157 , 0
157 : 2 = 78, 1
78 : 2 = 39, 0
39 : 2 = 19, 1
19 : 2 = 9 , 1
9 : 2 = 4, 1
4: 2 = 2, 0
2: 2 = 1, 0
125610 = 10011010002

1098810 --> 10988 : 2 = 5494, 0


5494 : 2 = 2747, 0
2747 : 2 = 1373, 1
1373 : 2 = 686, 1
686 : 2 = 343, 0
343 : 2 = 171, 1
171 : 2 = 85 , 1
85 : 2 = 42, 1
42 : 2 = 21, 0
21 : 2 = 10, 1
10 : 2 = 5, 0
5 : 2 = 2, 1
2 : 2 = 1, 0
1098810 = 101010111011002
1.8
100110012
1001 = ( 1x23) + (0x22) + (0x21) + (1x20) = 9
100110012 = 9916

11011011111101012
11012 = D
10112 = B
11112 = F
01012 = 5
11011011111101012 = DBF516
1.9
ABC716 = 10101011110001112
1789A16 = 101111000100110102
1.10
202010 = 7E416
172.98310 = AC.FBA5E353F7CED916872B16
1.11
Code
#include <iostream>
using namespace std;
int main(){
float a;
cout<<"canh cua hinh vuong la: ";cin>>a;
float dienTich = a * a;
float chuVi = a * 4;
cout<<"dien tich cua hinh vuong la: "<< dienTich << endl;
cout<<"chu vi hinh vuong la: "<< chuVi << endl;
return 0;
}

Hình chữ nhật


Code
Hình tròn
Tam giac
1.12

You might also like