Advertisement
CamolaZ

AE homework

Mar 25th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. unsigned cnt+0;
  5. for
  6.  
  7. unsigned gcd(unsigned int a, unsigned int b);
  8. calculateCoPrimes(int n);
  9. sequentialNumber()
  10.  
  11.  
  12.  
  13. int main()
  14. {
  15.  
  16. }
  17.  
  18. unsigned gcd(unsigned int a,unsigned int b)
  19. {
  20.     while(a!=b)
  21.         if (a<b)
  22.             b-=a;
  23.         else
  24.             a-=b;
  25.     return a;
  26. }
  27.  
  28. unsigned gcdRway(unsigned a, unsigned b)
  29. {
  30.     if(f==0)
  31.         return 0;
  32.     else
  33.         return gcd(b,a%b);
  34. }
  35.  
  36. unsigned gcd (unsigned a, unsigned){
  37. unsigned
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement