- If Counter 0 Average Total Counter Else Printf Cannot Divide By Zero N Int X 0 Total While X 10 1 (209.36 KiB) Viewed 15 times
if (counter > 0); average = total/counter; else printf("cannot divide by zero"\n); int x = 0, total; while ( ++x <= 10 )
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
if (counter > 0); average = total/counter; else printf("cannot divide by zero"\n); int x = 0, total; while ( ++x <= 10 )
if (counter > 0); average = total/counter; else printf("cannot divide by zero"\n); int x = 0, total; while ( ++x <= 10 ) { total += %; ] Model 2 5) Page 3