If computer understands only binary then why octal and hexadecimal are used
Because they make more easy visualization and operations between data than binary
Hexadecimal and octaldecimal are for humans to read not machines. Binary can also get long really fast a 64 bit number has to obviously be represented with 64 binary digits meanwhile it takes a few hexadecimal characters.
Conversion between binary and hex is easy (easier than binary to decimal) because hex is a power of 2. Hex being very concise, with still a limited number of characters (ABCDEF) in addition to digits, it makes it much more readable and easy to memorize by humans than binary.
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!