All pastes #243162 Raw Edit

Untitled

public text v1 · immutable
·published 2006-11-08 02:50 UTC
rendered paste body
Sum
Difference
Product
Quotient

Whether or not the sum is positive or negative
" " difference is pos/neg
" " product is pos/neg
" " quotient is pos/neg

Average
Average with a bonus value/percent

Sum w/ bonus
Dif w/ bonus
Prod w/ bonus
Quot w/ bonus

So far, all I can think of.

Some I'm contemplating:

If those variables were Length/Width of a square/triangle/rectangle/some shape, what would the Diameter/Perimiter/Area/Whatever be?
We'll also need code for the user to specify if the above is true, and what kind of shape it is[really meaning how many sides it has].

Positive/Negative functions will work like this:

Function will determine if > or < 0. It then returns a variable of value 0 for negative or 1 for positive. An IF statement in main then determines if the returned variable is 0 or 1, and prints "negative" or "positive" accordingly. Simple shit right thur.