#include<stdio.h>
#include<conio.h>
void main()
{
int n,i;
clrscr();
printf("Enter a Number:");
scanf("%d",&n);
printf("\n\nPrime Factors of %d is: ",n);
for(i=2;i<=n;i++)
{
if(n%i==0)
{
printf("%d,",i);
n=n/i;
i--;
if(n==1)
break;
}
}
getche();
}
this program will find the prime factors of a given numbe
any assistance
mail at :- devilllcreature@Yahoo.com
thank you
syntax error
A prime symbol or number is given to a number that has only 2 factors which are itself and one
For composite numbers, only one string of factors is the longest; the prime factorization.
A factor = a number which can be divided into the given number with no remainder ie 1, 7, 49 7 * 7 = 49
A factor is any number which can be divided into the given number with no remainder. i.e 1, 2, 3, 6, 9, 18, 27, 54
8086 assembly language program to check wether given number is perfect or not
If the given number has two factors, one of them is 1.
#include#includevoid main(){int n,i;clrscr();printf("Enter a Number:");scanf("%d",&n);printf("\n\nPrime Factors of %d is: ",n);for(i=2;i
There are two ways in which the factors can be given. You are given all the prime factors (and their multiplicity). In that case simply multiply them all together. Or You are given each factor. In this case, the biggest of these is the number.
Yes.
It varies with each given number.
A compiler is a program that reads a program written in one language and translates it into another equivalent program in other language(target language).i.e, Hll------Mll A translator on the other hand translates a given language into many languages as per requirement like Chinese to English and others as per capability.
distinct factors
You multiply the factors together. if the factors are 6 and 7 or 2,3 and 7, then the number is 6x7=2x3x7=42
All numbers have factors. Some factors are prime numbers. These are known as prime factors. The set of prime factors is a subset of the set of factors for any given number.
distinct factors
They're called the "factors" of the given number.