Blogger Tips And Tricks|Latest Tips For Bloggers Free Backlinks

Sunday, 11 November 2012

Write a program to find the given number is Even or Odd using C language?

Find the given number is Even or Odd,find even or odd,given number is even or odd,Write a program to find the given number is Even or Odd,program to find Even or Odd,Even or odd in C,Write a program to find the given number is Even or Odd using C language,Even or Odd,C find given number is even or odd,number is even or odd

 Program to find Even or Odd

    The below program is to find the given number is Odd number or Even number.

            #include<stdio.h>
             main()
             {
                  int n;
                  
                     printf("Enter number\n");
                     scanf("%d",&n);
    
                         if(n%2 == 0)
                           printf("Given number is Even\n");

                          else
                            printf("Given number is Odd\n");

                
             }   

        Output:-
                       1.  Enter number
                              22
                          Given number is Even
                       2. Enter number
                                    22                          
                            Given number is Odd

1 comments: