Responsive Ads Here

Monday, November 17, 2014

Even and Odd Number

Even and Odd Number

 

#include<stdio.h>
 
int main()
{
    int a;
    printf("Enter a number : ");
    scanf("%d",&a);
    if(a%2==0)
    {
        printf("%d is an Even Number ",a);
    }
    else
    {
        printf("%d is an odd Number !!!",a);
    }
    return 0;
}

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...