--------------------------------------------------------------
Programming Assignment #1
DUE DATE 10/19/01 5:00pm
Write a program that shifts a value both logically left and logically
right. The program will prompt the user for a number. It will then
prompt the user for a left shifting amount. It will next prompt the
user
for a right shifting amount. The program will output two
results: one
with the left shifted number and the other with the right shifted
number. Example output is as follows:
Please enter a number to be shifted: 12
Enter the number of left shifts: 1
Enter the number of right shifts: 1
12 shifted left 1 bit = 24
12 shifted right 1 bit = 6