Re: C++ help
ok here is my idea, it gives 1cent below the required number,
x is the required number
int sevens=x/7 //without the fractures
remainder = x-(sevens*7)
int twos= remainder/2 //without fractures
uint nines=sevens-twos //without sign
sevens=sevens-nines
twos=twos-nines
print nines,sevens,tw os
i'll write the one with one above the required number in few minutes...
ok here is my idea, it gives 1cent below the required number,
x is the required number
int sevens=x/7 //without the fractures
remainder = x-(sevens*7)
int twos= remainder/2 //without fractures
uint nines=sevens-twos //without sign
sevens=sevens-nines
twos=twos-nines
print nines,sevens,tw os
i'll write the one with one above the required number in few minutes...
Comment