13-Write a C program to find the number is even or odd.
Program: 13
Write a C program to find the number is even or odd.
#include#includevoidmain(){intn;printf("Enter any number: ");scanf("%d",&n);if(n%2==0){printf("Number is even.");}elseprintf("Number is odd.");}getch();}
Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Leave a Comment