Search
 
SCRIPT & CODE EXAMPLE
 

C

highest common factor algorithm in c

// C program to find GCD of two numbers
#include <stdio.h>
 
// Recursive function to return gcd of a and b
int gcd(int a, int b)
{
    if (b == 0)
        return a;
    return gcd(b, a % b);
}
 
// Driver program to test above function
int main()
{
    int a = 98, b = 56;
    printf("GCD of %d and %d is %d ", a, b, gcd(a, b));
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: add to beginning of array c 
C :: Palindrome number in c program 
C :: read file c 
C :: convert string to int error checking c 
C :: array of strings in c 
C :: print float in c 
C :: c include delay 
C :: function component with props 
C :: debian unhold packages 
C :: ecrire programme en C une fonction remplir tableau et un fonction inverser 
C :: pyinstaller hidden import tensorflow not found 
C :: square in c 
C :: c extern 
C :: how to check the word is present in given char array in c 
C :: c char to int 
C :: c unused variable 
C :: windows make clean 
C :: Install valet-linux 
C :: short print variable in c 
C :: fine print serial key 
C :: program in c to print 1 to 100 without using loop 
C :: convert c code to python online free 
C :: insertNode 
C :: creation of a thread 
C :: Here is a program in C that illustrates the use of fscanf() to read a text file: 
C :: djb2 algorithm for C 
C :: Implement N-Queen Problem 
C :: How to set bit in float number in C 
C :: nc,manc 
C :: putting character in the begginig and end of sring C 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =