Divisors

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
int main()
{
long int int n1,n2,i,t;
scanf("%d",&t);
i=num;
printf("\nThe divisors are \n");
/* Loop to check the divisors */
while(num>0)
{
if((i%num)==0)
{
printf(" %d ",num);
}
num--;
}
getch();
return 0;
}
/* if(l>=j)
{

for(m=0;m<l;m++)
{
for(q=0;q<j;q++)
{
if(ar2[q]==ar1[q])
cnt++;
}
}
}
*/

You might also like