I will be posting my programming projects here. Welcome all to my journey.
This is a simple odd even number identifier
#include<stdio.h>
int main(){
int n; //made a box tht will store the value of n
printf("Enter a number :");
scanf("%d", &n);// value of n will be given by the user that will get stored in the box which was created a bit ago
if(n % 2 == 0){
printf("Even\n");
}
if(n % 2!= 0){
printf("Odd\n");
}
return 0;
}
Comments
Post a Comment