H
OUTPUT:
Hoang
hoa hai
Press any key to continue
Question 10:
(1 mark, file to be edited: Q10.c)
The program allows the user to enter a character string of binary values (0 or 1) with a length equivalent
to 1 byte.
Print to the screen the two's complement value of the entered value.
Below is an example:
Enter s = "11101110"
11101110
OUTPUT:
00010010
Press any key to continue
Zoom
+ 100%
Close