#include <stdio.h>


void main(){

int x=15;

x=x<<2;

printf("the result1 is:%d\n",x);

x=x<<3;

printf("the result2 is:%d\n",x);

}

vv.jpg

运用c语言将数左移2位和3位