Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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 int
", value);elseprintf("%d is an odd int
", value);}
Source by inlarn.com #
 
PREVIOUS NEXT
Tagged: #Program #check #number #prime #java
ADD COMMENT
Topic
Name
1+9 =