java program for generating first 100 prime numbers
Answers
Answered by
1
import java.io.*;
class Prime
{
public static void main()
{
int i,c;
for(i=0;i<=100;i++)
{
if(i%2==0)
c++;
}
System.out.println("the numbers are"+i);
}
}
class Prime
{
public static void main()
{
int i,c;
for(i=0;i<=100;i++)
{
if(i%2==0)
c++;
}
System.out.println("the numbers are"+i);
}
}
saahil17:
it is necessary
Similar questions
Social Sciences,
7 months ago
Physics,
7 months ago
Math,
1 year ago
Science,
1 year ago
Physics,
1 year ago