Sunday, July 16, 2017

Beginner problem URI 1067 -> Odd Numbers

Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.

Enjoy your coding thank you.....please follow me.


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

No comments:

Post a Comment

কম্পিউটার প্রোগ্রামিং শেখা কতটা গুরুত্বপূর্ণ ?

প্রোগ্রামিং কতটা গুরুত্বপূর্ণ? কম্পিউটার বিজ্ঞানের অনেক বড় একটা অংশ জুড়েই রয়েছে প্রোগ্রামিংয়ের দখল। প্রোগ্রামিং ছাড়া আমর...