Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program for FUNCTION OF DIVIDER
int gcd(int , int);
void main()
{
int m=0,n=0,k=0;
clrscr();
printf("ENTER THE FIRST DIGIT: ");
scanf("%d",&m);
printf("ENTER THE SECOND DIGIT: ");
scanf("%d",&n);
k=gcd(m,n);
printf("THE GREATEST COMMON DIVISER %d AND %d IS %d",m,n,k);
getch();
}
int gcd(int m , int n)
int temp=0;
printf("%d %d\n",m,n);
while(n!=0)
if(n>m)
temp=m;
m=n;
n=temp;
if(n==0)
return(m);
m=m%n;
OUTPUT :
ENTER THE FIRST DIGIT : 20
ENTER THE SECOND DIGIT : 1
20 1
0 1
1 0
THE GREATEST COMMON DIVIDER 20 & 1 IS 1
Write a program to calculate e^x using the formula: e^x = 1 + x/1! + x^2/2! + x^3/3! + ...... Allow the user to enter the integer number x, then do the calculation in a loop (for
The program must use the file named on the command line as its input file. Suppose the program is named pdbtool. Then if the user types pdbtool 1A36.pdb the program must read the d
Additional keywords in C++ Class friend virtual inline private public protected const this new delete operator The actual use and expl
Hiding overloaded functions We cannot overload a base class function by redefining it in a derived class with a dissimilar argument list. Consider examples to see if similar fu
Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? Becareful for the Leap year
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
d) a "static destructor" is a static member function of the class which accepts one argument - a pointer to the object of that class to be cracked. It is probably utilized along wi
Create a program WordCount1Main.java doing the following: For each word in the le word.txt { Create an object of the class Word { Add the object to a set of the type java.uti
Pls i only need help with program 2. #include #include using namespace std; int main() { int FilingStatus; cout cout cout cout cout cout
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd