Quote:
Originally Posted by vidyadhar85
your logic is again wrong what if average is comes out as 75.
it will be true in last three if statements..
and that 0 is coming because you used %d in printf to print grade use %s
|
ok thanks i just had to change d to s
but still the last part average, how do i take average of test 1, test 2, and test 3?
I know how to do individual's average but dont know how to do average from a column like test 1 grades....