class primenoSeries
{
void main ()
{
int i = 1; // Used to divide number and check if they are factors or not.
int C = 0; // used as a counter for number of factors.
int n = 1; // Represent the numbers.
while (n > 0)
{
if ( n % i n )
{
C = 0;
n++ ;
i = 1;
}// Check next number since previous number had more than two factors.
else
{
i++ ;
}
}
else
i++ ;
}
}
}
Chat with our AI personalities
fdsgfhgdfhgdf
By learning how to program on C+.
# include<stdio.h> main() { int a,b,c; print f("enter the values of a,b,c"); scan f("%d%d%d",&a,&b,&c); if((a>b)&&(a>c)) print f("Greatest value is a =%d",a); else if((b>a)&&(b>c)) print f("Greatest value is b=%d",b); else print f("Greatest value is c=%d",c); }
#include #includevoid main() int prime(int num) { inti,flag; for(i=2;i
The answer depends on what value C has.