C program to find all integer divisors of a given number

#include <stdio.h>

#include <stdlib.h>

int main()

{
    int num,i;
 
    printf("Enter the number:  ");
 
    scanf("%d",&num);

    printf("interger devisors are: ");

    for(i=num;i>0;i--)

    {
    if(num%i==00)


    printf("%d\t",i);
    }
    
}

Comments