Sunday, February 21, 2016

URI 1067 - Odd Numbers

#include <stdio.h>

int main() {

   int i,n;
   scanf("%d",&n);
   for(i=1; i<=n; i=i+2){
       printf("%d\n",i);
   }

    return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)