Uri 1075 - Remaining 2


Problem Link

Solution in c


#include<stdio.h>
int main()
{
    int n, i;
    scanf("%d", &n);
    for(i = 2; i <= 10000; i = i + n)
    {
        printf("%d\n", i);
    }
    return 0;
}




No comments

Theme images by Jason Morrow. Powered by Blogger.