This C program to check Height Number of two number. It is also Called HCF. This Number has use Integers Numbers.
C programming code
#include<conio.h>
#include<stdio.h>
void main()
{
int f, s, i, a;
clrscr();
printf("\n enter the first no. ");
scanf("%d",&f);
printf("\n enter the second no. ");
scanf("%d",&s);
for( i = 1 ; i <= s || i <= f ; i++ )
{
if( f % i == 0 && s % i == 0 )
a=i;
}
printf("\n %d hight factor of %d and %d",a,f,s);
getch();
}
Output:-

C programming code
#include<conio.h>
#include<stdio.h>
void main()
{
int f, s, i, a;
clrscr();
printf("\n enter the first no. ");
scanf("%d",&f);
printf("\n enter the second no. ");
scanf("%d",&s);
for( i = 1 ; i <= s || i <= f ; i++ )
{
if( f % i == 0 && s % i == 0 )
a=i;
}
printf("\n %d hight factor of %d and %d",a,f,s);
getch();
}
Output:-
