ODD OR EVEN C Program

Image result for c programming

ODD OR EVEN  C Program
Code:

  #include<stdio.h>
int main(){
  int a;
  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