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
Aim: Write a program of multipication using inline function class Multiply { int x,y; public: void getdata(); inline calc
Description A long time ago in a galaxy far, far away, the country Mafghanistan had n cities and m old roads, where each road connected a pair of cities. Due to the treacherous mo
full coding for lcm in c++
Problem: (a) (i) What is a structure? (ii) How does a structure differ from an array? (b) Declare a structure, called account, that will contain the following data me
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes
13446
Define Functions with arguments and return values? The earlier category functions receive values from the calling function through arguments but do not send back any value rath
Project Description: Project Description: I am seeking a programmer who will be able to design some software that will allow the user to: 1) Repeatedly monitor Nike twitter a
Write a program to compute the following equation for values of time. y = 2x+3 The values of time are stored in the file program.dat and the solution should be display
Program is to find the maximum from two numbers: Program is to find the maximum from two numbers entered by the user having pointer variable as parameter void main() {
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