/* To Get The LCM Of 15 Nos in C++/ C(Just Change cin to scanf & cout to printf) */
/* Developed By Kishore Kr. Banerjee - papillon_kish@Yahoo.com*/
#include <iostream.h>
#include <conio.h>
main()
{
int num[15],i,j,n1,n2,LCM,flag;
clrscr();
for(i=0;i<15;i=i+1)
{
cout<<"Enter No - "<<i+1<<"=";
cin>>num[i];
}
clrscr();
n1=num[0];
for(i=1;i<15;i=i+1)
{
n2=num[i];
LCM=1;
for(j=1;n1%j==0n2%j==0;j=j+1)
{
if(n1%j==0)
{
n1=n1/j;
flag=1;
}
if(n2%j==0)
{
n2=n2/j;
flag=1;
}
if(flag==1)
{
LCM=LCM*j;
}
}
LCM=LCM*n1*n2;
n1=LCM;
}
cout<<"the LCM ="<<LCM;
getch();
}
program to find maximum of two numbers using pointers
VBnet program to find the prime numbers between 100 to 200?
how to get the arithmetic average on pascal
210
You can find the numbers in many different languages in the link below.
program to find maximum of two numbers using pointers
VBnet program to find the prime numbers between 100 to 200?
write an assembly language program to find sum of N numbers
k
Please visit http://talentsealed.blogspot.com/2009/10/to-find-sqaure-of-numbers-using-c.htmlfor the answer.
I don't know any numbers or statistics for this, but it is possible. I am single, but i have finally developed a close friendship with one person who understands and accepts me. It was possible to find him as a friend. It is also possible to find someone who accepts you just as much who will be a future husband.
how to get the arithmetic average on pascal
210
Find your own answers....sucks mahn
Since there is an infinite set of prime numbers the answer would be infinity.
You can find the numbers in many different languages in the link below.
i need this answer