-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arithmetic Logic Unit [Output]
69 lines (53 loc) · 1.26 KB
/
Arithmetic Logic Unit [Output]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Arithmetic Logic Unit [Output]
--------------------------------------------------------------------------------------------------------------------------
Enter First Number: 5
Enter First Number: 6
1.Add
2.Sub
3.Multiply
4.Divide
5.modulo division
6.square root
7.or
8.and
9.not
10.Increment
11.Decrement 12.Bitwise And
13.Bitwise Or
14.Bitwise Xor
15.Leftshift
16.Rightshift
please select one of the following:1
result: 11
please select one of the following:2
result: -1
please select one of the following:3
result: 30
please select one of the following:4
result: 0.8333333333333334
please select one of the following:5
result: 5
please select one of the following:6
result: 2.23606797749979
please select one of the following:7
result: 5
please select one of the following:8
result: 6
please select one of the following:9
result: False
please select one of the following:10
result: 6
please select one of the following:11
result: 4
please select one of the following:12
result: 4
please select one of the following:13
result: 7
please select one of the following:14
result: 3
please select one of the following:15
result: 320
please select one of the following:16
result: 0
please select one of the following:17
Invalid Option