Question: C coding only. Use while loops only or for loops. no fancy coding. please label each step so i can learn aswell. Lab 1 Challenge
Lab 1 Challenge 1: Number systems Write a program that will assign a number for base 10 integer in the range 0... 255, i.e., 8 bit system, and then convert and print the equivalent binary number (base 2) and hexadecimal number (base 16). For example, an integer 10 will be converted to 00001010 as binary and OA for hexadecimal without using arrays. Note that the base 10 integer is expressed with numbers of (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the base 2 system with 0 or 1. The hexadecimal system is expressed with (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
