C Language Program to Determine if a Number is Even or Odd
Determine if a number is even or odd #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h> // system function required int main(){ int a; while (1) // infinite loop { printf("Please enter an integer:\n"); scanf("%d", &a); if (a % 2 == 0) { printf("%d is even\n", a); } else { printf("%d is odd\n", a); } printf("Press any key to … Read more