bsc

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

root / semester_1 / tuition-c / P040.c

P040.c (306B)


      1 /* Write a program to calculate HCF of two positive number */
      2 
      3 #include <stdio.h>
      4 int main()
      5 {
      6     int a, b, temp;
      7     printf("Enter two number : ");
      8     scanf("%d %d", &a, &b);
      9     while (b > 0)
     10     {
     11         temp = a;
     12         a = b;
     13         b = temp % b;
     14     }
     15     printf("HCF = %d", a);
     16     return 0;
     17 }
© 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