Thursday, June 23, 2016

SOLUTION OF URI 1157


//  1157   (Mahmud_Jamil) BRUR
// 
Divisors I





#include <stdio.h>

int main()
{
   int N,a;
    scanf("%d",&N);
    for(a=1;a<=N;a++)
    {
        if(N%a==0)
            printf("%d\n",a);
    }
    return 0;
}



0 comments:

Post a Comment