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
This problem familiarizes you with using random numbers in C++. The program is to compute a good approximation of p using a simulation method called "Monte Carlo". The following fi
write a atm program in c with inbuilt functions for 1782?
Project Description: I have a code that works different on 64 bit and 32 bit system. Code is relative to some crypt functions, similar, but not equal to: I have to move fr
I have an exercise with 2 problems. One that is partially completed except with read problems with memory overwrite, and the other problem. I have enclosed the instructions documen
THEORY OF COMPUTER PROGRAMMING
explain the function of strlen() and strcat()
Write a program to act as an electronic safe. If the correct code has been entered the program should display "Safe Open". If an incorrect code is input it should display "Alarm"
Question 1 Consider you have to find out average marks of 100 students in a class. Write simple program(s) using different iteration statements to accomplish it Question 2 Expla
Environment - C, Linux Duration - December 2006 to Feb 2007 Description - TR-106 specifies a generic data model template applicable for all TR-069 enabled devices. Adde
A small shop sells 280 different items. Every item is identified by a 3 - digit code. All items which start with a zero (0) are cards, all items which start with a one (1) are swee
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