bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

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 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror