Complete Video Learning
Table of Contents
#include <conio.h> #include <stdio.h> int main() { int num; printf("Enter an integer: "); scanf("%d", &num); if(num % 2 == 0) { printf("%d is even.", num); } else { printf("%d is odd.", num); } getch(); }
Enter the integer: 6
6 is even