bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / tuition-c / APC-PRAC-008.c

APC-PRAC-008.c (360B)


      1 /* WAP to multiply and divide a number by 4 without
      2 using multiplication and division operator. */
      3 
      4 #include <stdio.h>
      5 int main()
      6 {
      7     int num, multi, div;
      8     printf("Enter the number : ");
      9     scanf("%d", &num);
     10     multi = num << 2;
     11     div = num >> 2;
     12     printf("Multiplication : %d"
     13            "\nDivision : %d",
     14            multi, div);
     15     return 0;
     16 }