Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
October 28th, 2012, 06:27 PM
 H4rduino
Registered User

Join Date: Oct 2012
Posts: 3
Time spent in forums: 29 m 45 sec
Reputation Power: 0
Solved

Solved

#2
October 28th, 2012, 06:46 PM
 b49P23TIvg
Contributing User

Join Date: Aug 2011
Posts: 4,214
Time spent in forums: 1 Month 3 Weeks 2 Days 18 h 7 m 36 sec
Reputation Power: 455
if(C>50) C=2*C;

if C is bigger than 50, which it is because it's 225, double it.

if(C>200) C=C/2;

if C is bigger than 200, which it is, then halve it.

Leaving C at 225.
__________________
[code]Code tags[/code] are essential for python code!

#3
October 28th, 2012, 08:53 PM
 H4rduino
Registered User

Join Date: Oct 2012
Posts: 3
Time spent in forums: 29 m 45 sec
Reputation Power: 0
Things work!
Thanks again
ptr2void disagrees: Don't delete your code! That is rude.

 Viewing: Dev Shed Forums > Programming Languages > C Programming > Help with C=A(1/B) with conditions in the result