Monday, June 18, 2012

Homework 4: Precedence-1

1. Write an expression that computes the average of the values  12 and  40 .


( 12 + 40 ) / 2

2. Write an expression that computes the average of the variables  exam1 and  exam2 (both declared and assigned values). 

( exam1 + exam2 ) / 2

No comments:

Post a Comment