Program in c to find whether given no. is even or odd


 Program to find whether given no. is even or odd.

#include<stdio.h> 

#include<conio.h> 

void main()

{

int n; clrscr();

  printf(“enter any no: ”);                     

  scanf(“%d”,&n);

 if(n%2==0)

printf(“no is even”); 

else

printf(“no is odd”);

 getch();

}

OUTPUT

enter any no: 5 no is odd

Share:

No comments:

Post a Comment

Popular Posts

Powered by Blogger.

About Me

My photo
HARDOI, Uttar Pradesh, India
I AM DEEPAK SHARMA I AM A WEB developer andBLOGGER AND DATA ENTRY EXPERT , AND photo EDITING EXPERT . I LIVE IN INDIA

Ticker

6/recent/ticker-posts

Slider

5/random/slider

Search This Blog

About

About
TOOL5984.BLOGSPOST.COM

WELCOME TO TOOL5984 (C,C++,JAVA , ETC ALL PROGRAMS

WELCOME TO TOOL5984 (C,C++,JAVA , ETC ALL PROGRAMS
Graphic resources for everyone.

Technology

3/Technology/col-right
C Programs with example

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Sample Text

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat.

Pages

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.