un program care sa tipareasca divizori comuni a 2 nr C++ facut cu functie

#include

using namespace std;

void div(int x, int y, int d, int aux,int &b){
if (x < y) {
aux = x;
x = y;
y = aux;
}
for (d = 1; d <= x; d++)
if (x % d == 0 && y % d == 0)
b = d;
}

int main()
{
int d, aux,b;
cout< }
aici e codul meu, nu merge parte de cout
More Questions From This User See All

Smile Life

Show life that you have a thousand reasons to smile

Get in touch

© Copyright 2024 DOKU.TIPS - All rights reserved.