• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

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