Tech: Artificial Intelligence AI, Blockchain, Augmented Reality, Software, Programming, and more
Sunday, August 30, 2020
parity.c
#include <cs50.h>
#include <stdio.h>
int main(void)
{
int n = get_int("please enter an integer:\n");
if(n % 2 == 0)
{
printf("the number you entered is an even number\n");
}
else
{
printf("the number you entered is odd.\n");
}
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)