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");
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment