google-site-verification: googlef8aa845b858144d3.html COMPUTER SCIENCE NOTES: Even Odd: (Example 2) Write a program to check whether the given numbe...

Thursday, March 2, 2017

Even Odd: (Example 2) Write a program to check whether the given numbe...

/* 2 program of even and odd */
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("Enter a number :");
scanf("%d",&n);
if((n&1)==1)
printf("odd number");
else
printf("even number");
getch();
}

No comments:

Post a Comment