### Arithmetic Program

Write a program to print all numbers between 1 and 100 which are divisible by 9

1. #include
main()
{
int a,x=9;
division(a,x);
}

int division(int m,int n)
{
printf("These numbers are divisable by 9 :\n");
for (m=1;m<=100;m++)
{
if(m%n==0)
{
printf("\n%d\n",m);
}
}
}

2. #include
int divis(int i,int j);
main()
{
int i=1,j=9;
divis(i,j);
}
int divis(int a,int x)
{
while(a<=100)
{
if(a%x==0)
{
printf("%d\n",a);
}
a++;
}
}

3. #include
#include
int *funcx(void);
int main()
{
int ptr;
int (*pFn)(void);
pFn=funcx;
ptr=(*pFn)();
getch();
return 0;

}

int *funcx(void)
{
int n,i=9;
printf("\n The divisable value are:");
for(n=1;n<=100;n++)
{
if(n%i==0)
printf("\n %d",n);

}

return n;
}

4. #include
main()
{
int a,x=9;
division(a,x);
}

int division(int m,int n)
{
printf("These numbers are divisable by 9 :\n");
for (m=1;m<=100;m++)
{
if(m%n==0)
{
printf("\n%d\n",m);
}
}
}

5. #include
#include
int funcx(void);
int main()
{
int ptr;
ptr=funcx();
printf("\n%d",ptr);
getch();
return 0;
}
int funcx(void)
{
int n,i=9;
printf(" The divisable value are:");
for(n=1;n<=100;n++)
{
if(n%i==0)
printf("\n %d",n);
}
return n;
}

6. #include
main()
{
int i ;
for(i=9;i<100;i++)
{
if(i%9==0)
printf("%d\n",i);

}
}

1. #include
main()
{
int a;
for(a=9;a<=100;a++)
{
if(a%9==0)
printf("Arithmetic Program is %d\n",a);
}
}