Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Compile and Execute C Online

#include <stdio.h>

int n=2;
void main()
{
    
    printf(" enter a positive number");
    scanf("%d",&n );
    
    if ((n%2)==0)
    {
        printf("the number is even");
    }
    else 
    {
        printf("the number is odd");
    }
    
    

    
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.