
Tengo un error pero no se cual es, me podrían ayudar?
Publicado por Cristian (1 intervención) el 26/11/2022 22:25:41
#include <iostream>
using namespace std;
typedef struct {
unsigned int num;
unsigned int den;
}tfraccion;
unsigned int mcd(unsigned int z, unsigned int x, unsigned int y){
unsigned int div=1;
for(unsigned int i=1; i<=z; i++){
if(y%i==0, x%i==0 && z%i==0){
div=i;
using namespace std;
typedef struct {
unsigned int num;
unsigned int den;
}tfraccion;
unsigned int mcd(unsigned int z, unsigned int x, unsigned int y){
unsigned int div=1;
for(unsigned int i=1; i<=z; i++){
if(y%i==0, x%i==0 && z%i==0){
div=i;
Valora esta pregunta


0