Answers for "how do you determine if a number is prime 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 "how do you determine if a number is prime in java"

Code answers related to "C"

Browse Popular Code Answers by Language