Computer Science, asked by isaackommu, 2 months ago

wright a java program using scanner class to find a factoral of a number

Answers

Answered by AbhinavRocks10
7

Prime Number Program in Java (Another way)

import java.util.Scanner;

import java.util.Scanner;

public class PrimeExample3 {

public static void main(String[] args) {

Scanner s = new Scanner(System.in);

System.out.print("Enter a number : ");

int n = s.nextInt();

if (isPrime(n)

Similar questions