bsc

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

APC-PRAC-008.c (496B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* WAP to multiply and divide a number by 4 without
      8 using multiplication and division operator. */
      9 
     10 #include <stdio.h>
     11 int main()
     12 {
     13     int num, multi, div;
     14     printf("Enter the number : ");
     15     scanf("%d", &num);
     16     multi = num << 2;
     17     div = num >> 2;
     18     printf("Multiplication : %d"
     19            "\nDivision : %d",
     20            multi, div);
     21     return 0;
     22 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror