Write a printf or scanf statement for each of the following:
b. Read a hexadecimal value into variable hex.
c. Print 200 with and without a sign.
d. Print 100 in hexadecimal form preceded by 0x.
e. Read characters into array s until the letter p is encountered.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
https://docs.oracle.com/javase/tutorial/java/data/numberformat.html