/ Undifined / 8 - WAP that finds whether a given number is even or odd.

8 - WAP that finds whether a given number is even or odd.

WAP that finds whether a given number is even or odd.
#include<stdio.h>
 
int main(){
 
    int number;
 
    printf("Enter any integer: ");
    scanf("%d",&number);
 
    if(number % 2 ==0)
         printf("%d is even number.",number);
    else
         printf("%d is odd number.",number);
 
    return 0;
 
}
Output 
Enter any integer: 5
5 is odd number.

about author

Blogger Sens it website about blogger templates and blogger widgets you can find us on social media
Previous Post :Go to tne previous Post
Next Post:Go to tne Next Post

No comments:

Post a Comment