Two's complement: Difference between revisions

m
Reformatting a line of text which was overflowing the page width.
m (Made code moreC++ idiomatic.)
m (Reformatting a line of text which was overflowing the page width.)
Line 285:
for ( int example : examples ) {
System.out.println(String.format("%5d%18s%36s%13d",
String.format("%5d%18s%36s%13d", example, toHex(example), toBinary(example), twosComplement(example)));
}
}
908

edits