Free C programs with output, C++ (C plus plus), programs c programming language, object oriented programming, c programs codes, c program shortcuts, history of c programming language, c programming compilers
Showing posts with label Program to find whether a number is odd or even. Show all posts
Showing posts with label Program to find whether a number is odd or even. Show all posts
#include int main() { int number ; printf("Enter a whole number\n"); scanf("%d",&number); if(number % 2 == 0) printf("number is even.\n"); else printf("number is odd.\n");