C Program : Swift left example

 #include <stdio.h>

int main() { int number, shiftAmount; printf("Enter an integer: "); scanf("%d", &number); printf("Enter the number of positions to shift left: "); scanf("%d", &shiftAmount); int result = number << shiftAmount; printf("Result of left shifting %d by %d positions: %d\n", number, shiftAmount, result); return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management