Last active
December 5, 2022 16:58
-
-
Save kakarot-dev/9e3cedf83c9d716b41a7e218fab266ec to your computer and use it in GitHub Desktop.
Arihant CS1 Unit Test program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
#include <stdio.h> | |
#include <conio.h> | |
void main() { | |
clrscr(); | |
int n; | |
cout << "Enter an integer: "; | |
cin >> n; | |
if (n % 2 == 0) | |
cout << n << " is even."; | |
else | |
cout << n << " is odd."; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment