Anonymous

Finding Prime Numbers In 100 Number Array Program Using Java Language That Ask User To Input 100 Values In Array N Print Prime Numbers?

1

1 Answers

Anonymous Profile
Anonymous answered
// Created by: T.Tambet
public class Algarv {
    public static void main(String args[]) {
    int numbrid = 0; // Proovime kohe algusest
    int loendur = 0; // Loendame üles, et pärast lihtsam oleks
    while(loendur < 100) // Eelkontrolliga, t2idame kuni see on 100
  {
  numbrid++;
  if(numbrid % 2 != 0)
  {
  int abi = 3;
  while((numbrid % abi != 0)&&(abi

Answer Question

Anonymous