Write a Program that accepts a no & find if odd or even

#include<stdio.h>
#include<conio.h>
void main()
{
  int no;
  clrscr();
  printf("Enter a number");
  scanf("%d",&no);
  if(no%2==0)
  {
    printf("Even number");
  }
  else
  {
    printf("Odd number");
  }
  getch();
}

6 comments:

  1. Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING

    ReplyDelete
  2. I've read a few good stuff here. Certainly value bookmarking for revisiting.


    Jill
    www.imarksweb.org

    ReplyDelete
  3. It is impossible for you to be angry and laugh at the same time. Anger and laughter are mutually exclusive and you have the power to choose either. See the link below for more info.

    #laugh
    www.mocsbar.com


    ReplyDelete
  4. I understand that every person has the passion in any aspects or things. If you love something and it came in front of you it completes your day and your mood turns into something you won't expected. I love your work and I want to read more about it. Visit my site if you have time . Thank you.

    triciajoy.com

    www.triciajoy.com

    ReplyDelete
  5. I like the way on how you put up your blogs. Wonderful and awesome. Hope to read more post from you in the future. Goodluck. Happy blogging!

    Bubble
    www.gofastek.com

    ReplyDelete
  6. hi,, it is also good but i just find a little different...... write a C++ program to accept a four digit number and print whether it it an odd or even number??
    .
    .
    can you help me to solve this...?

    ReplyDelete

Related Post

Array:
String functions:
General (Loops-for/while)
Write a Program to print reverse of a given number Write a Program to print Product of Digits (eg. 212=2*1*2=4) of a given number Write a C++ Program to Convert Binary into Decimal Number