FRANCIS JUSTINE PAGUIRIGAN MADRAZO

Group 6·CITY OF ILAGAN

My Number: 15

Why: I picked this number because it's my student number.

Working (15 down to 0)

15 // 2 = 715 % 2 = 1
7 // 2 = 37 % 2 = 1
3 // 2 = 13 % 2 = 1
1 // 2 = 01 % 2 = 1

Binary representation: 1111

My loop's answer and Python's own answer agree.

Sixteen Rows Starting at 15

NumberBinaryOctalHex
150b11110o170xf
160b100000o200x10
170b100010o210x11
180b100100o220x12
190b100110o230x13
200b101000o240x14
210b101010o250x15
220b101100o260x16
230b101110o270x17
240b110000o300x18
250b110010o310x19
260b110100o320x1a
270b110110o330x1b
280b111000o340x1c
290b111010o350x1d
300b111100o360x1e

This page was built by Python the moment you asked for it.

The same page, written as a file · Our group homepage