Warning: Trying to access array offset on value of type bool in /home/topgsnkq/timelyhomework.com/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 570
ME209
Write a program to receive 4 binary digits from user and your program using if-then-else statement will output the number in decimal.For example if user type in 0111 you output will be “0111 in binary is 7 in decimal”.The goal of this exercise is to use if-then-else statement so please do not use a formula to convert.