diff options
Diffstat (limited to '462/CH2/EX2.35')
-rwxr-xr-x | 462/CH2/EX2.35/ex_2_35.pdf | bin | 0 -> 118290 bytes | |||
-rwxr-xr-x | 462/CH2/EX2.35/ex_2_35.sce | 16 |
2 files changed, 16 insertions, 0 deletions
diff --git a/462/CH2/EX2.35/ex_2_35.pdf b/462/CH2/EX2.35/ex_2_35.pdf Binary files differnew file mode 100755 index 000000000..93c35ff7e --- /dev/null +++ b/462/CH2/EX2.35/ex_2_35.pdf diff --git a/462/CH2/EX2.35/ex_2_35.sce b/462/CH2/EX2.35/ex_2_35.sce new file mode 100755 index 000000000..74a818606 --- /dev/null +++ b/462/CH2/EX2.35/ex_2_35.sce @@ -0,0 +1,16 @@ +//example 2.35//
+//addition of hexadecimal number//
+clc
+//clears the screen//
+clear
+//clears already existing variables//
+x=hex2dec('7F')
+//hexadecimal to decimal conversion//
+y=hex2dec('BA')
+z=x+y
+//addition//
+a=dec2hex(z)
+//decimal to hexadecimal conversion//
+disp('addition of given hexadecimal numbers results in :')
+disp(a)
+//answer in hexadecimal form//
\ No newline at end of file |