its working:):) thanks
Type: Posts; User: Agnes Roguska
its working:):) thanks
#include "stdafx.h"
#include <iostream>
using namespace std;
int simplify(int x2 ,int y2 ,int gcd ,int a ,int b )
{
a= x2/gcd;(simplify its counting a and b)
b= y2/gcd;
why return simplify( x2, y2, gcd, a,b);
didnt return the values to multiply
rogster Im not rude... I sitting on this project and really have enough . im dont want to be a programmer its only one of my subjects which i need to pass.. I dont even like it. u think for me...
#include "stdafx.h"
#include <iostream>
using namespace std;
int simplify(int x2 ,int y2 ,int gcd ,int a ,int b )
{
a= x2/gcd;
b= y2/gcd;
#include "stdafx.h"
#include <iostream>
using namespace std;
int simplify(int x2 ,int y2 ,int gcd ,int a ,int b )
{
a= x2/gcd;
b= y2/gcd;
can somebody do it for me !!!so i will not disturb u anymore .
#include "stdafx.h"
#include <iostream>
using namespace std;
int simplify(int *x2 , int *y2 ,int *gcd , int *a , int *b )
{
*a= *x2/*gcd;
*b= *y2/*gcd;
pass by the references - can u give me an easy example .. cos im searching on google and its showing me hard examples.
sorry guys but really programming is too hard for me ..cos im mixing...
#include "stdafx.h"
#include <iostream>
using namespace std;
int simplify(int x2 , int y2 ,int gcd , int a , int b )
{
a= x2/gcd;
b= y2/gcd;
#include "stdafx.h"
#include <iostream>
using namespace std;
int multiply()
{
int numerator,denominator,numerator2,denominator2;
int x2,t2, x;
cout<<"Input the numerator and...
gcd is working
#include "stdafx.h"
#include <iostream>
using namespace std;
int multiply()
{
int one3,two3,three3,four3;
int e3,f3, x;
cout<<"Input the numerator and denominator of a...
if i will know how to do it I will be not on this forum.... Yes people told me that my code is unreadable but in my class everybody is writing like that.. so im not catching u guys.. im new to it ...
#include "stdafx.h"
#include <iostream>
using namespace std;
int divide()
{
int one4,two4,three4,four4;
im going crazy here
int multiply()
{
int one3,two3,three3,four3;
int e3,f3;
cout<<"Input the numerator and denominator of a fraction separated by spaces :"<<endl;
cin>>one3;
#include "stdafx.h"
#include <iostream>
using namespace std;
int multiply()
{
int one3,two3,three3,four3;
i want the fraction result in multiply to be simpler.thats why i was trying to send result from multiply to gcd and after to simplify but im doing something wrong
I need to make fractions to be in the simplest form. how to do it .i know i need to call and pass fraction to gcd and simplify but i dont now how to do it so it will work..
int divide()
...