WAP to shift the entered number by three bits left and display the result.
Answers
Answered by
0
#include<stdio.h>
int main()
{
int x,y;
clrscr();
printf("Enter a number:-");
scanf("%d",&y);
x=y << 3;
printf ("The result is %d",x);
return 1;
}
Enter a number: 60
The result is :480
int main()
{
int x,y;
clrscr();
printf("Enter a number:-");
scanf("%d",&y);
x=y << 3;
printf ("The result is %d",x);
return 1;
}
Enter a number: 60
The result is :480
Similar questions