An algorithm to detect the given integer number  is  “Even” or “Odd”.

1) START

2) Enter Any number as Gno

3) Check if ( Gno%2 = = 0 ) then continue Else Goto Step 6

4) Print Given number is EVEN

5) GoTo Step 7

6) Print Given number is ODD

7) END

Flowchart to detect the given integer number  is  “Even” or “Odd”

Flowchart to detect given number even or odd
Flowchart to detect given number even or odd

C-Code to detect the given integer number  is  “Even” or “Odd”

#include<stdio.h>
void main()
{
int gno;
printf("Enter any number to detect Even or Odd:");
scanf("%d",&gno);
if(gno%2==0)
printf("The given number is Even : %d",gno);
else
printf("The given number is Odd : %d ",gno);
}