Answers for "hw to check if number is a prime number in java"

C
0

Program to check whether the number is prime or not in java

#include <stdio.h>void main(){int value, rem;printf("Enter an int ");scanf("%d", &value);rem = value % 2;if (rem == 0)printf("%d is an even intn", value);elseprintf("%d is an odd intn", value);}
Posted by: Guest on July-08-2021

Code answers related to "hw to check if number is a prime number in java"

Code answers related to "C"

Browse Popular Code Answers by Language