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
1.1 A Few Notes: 1. Please test your program with various inputs prior to submission. 2. All group members must understand the entire project for interactive grading. Equal
Ravi is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''{'' and end with '
please send code for inverted index file
Define Polymorphism? A: Polymorphism let a client to treat di_erent objects in the simialr way even if they were developed from di_erent classes and exhibit di_erent behaviors.
recursive sub programs
Declaration of Variables: Variables are declared as follows: int a; float b; Assigning value to variables: int a = 100; Declaring and assigning is called ini
What is Ms dos?
Why shouldn't Matrix class's interface look like an array-of-array? A: Some people build a Matrix class that has an operator[] that returns a reference to an Array object (or po
1. The main program must be in a file called A4.cpp 2. The data must be read in from a data file. The user must enter the filename. A sample data file will be provided on Mood
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b
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: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd