Question: Write a program that will ask the user to enter an integer. The program should check if the 3rd least significant bit of the number
Write a program that will ask the user to enter an integer. The program should check if the 3rd least significant bit of the number (in binary) is a '1'or '0', and tell the user. If the bit was a '0' the program should set the bit to '1'; if the bit was a '1' it should clear the bit to zero. The program should then display the new resulting integer number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
