Friday, October 26, 2018

Uri 1075 solution in C | Remaining 2

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/


#include<stdio.h>
main()
{
    int N,i;
    scanf("%d",&N);
    for(i=2;i<=10000;i=i+N)
    {

        printf("%d\n",i);
    }
    return 0;

}
 //Happy_Coding

No comments:

Post a Comment