C wacp // odd num until inpunt when get value even ______/ odd num btween 5 to 50 __________________________



// odd num until inpunt when get value even __________________________


#include<stdio.h>

int main()

{

    int n;


    do{

        printf("Enter number:");

        scanf("%d",&n);

        printf("even num:%d\n",n);


        

        if( n%2 !=0)

        {

            break;

        }

        

    } while(1);


    printf("Thankyou so much");

    

    

    

    return 0;


}



// odd num btween 5 to 50 __________________________


#include<stdio.h>

int main()

{

    for(int i=5; i<=50; i++)

    {

        if( i%2==0)

        {

            continue;

        }

        printf("%d\n",i);

    }


    

    

    

    

    return 0;


}

Comments

Popular posts from this blog

HERE IS ALL THE C CODE I CREATED

C sum all values output valus using for loop