Friday, August 26, 2016

uri- 1157 - Divisors I

#include<stdio.h>
int main()
{
    int i,j,n,k,r;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
    if(n%i==0)
    printf("%d\n",i);

    }
    return 0;
}

No comments: