• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Help a beginner with Java

<snip>

EDIT: Doh, I meant over 1000 not 360. 'twas a typo.
 
int total=0;
for(int i=0;i<num.length;i++)
total +=num;
//print total
 
Back
Top