Even or Odd No.

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <stdio.h> #include <conio.

h> int main (void) { int a; printf("Please enter an integer"); scanf("%d",&a); if (a % 2) { printf("%d is odd",a); } else { printf("%d is even",a); } getch(); }

You might also like