67 048
Assignments Done
99,3%
Successfully Done
In November 2018

Answer to Question #3301 in Java | JSP | JSF for carla

Question #3301
How to calculate the total vote 33,51,43,22,61,51,47 in for loop?
Expert's answer
public class Start {
& public static void main(String[] args)
& {
int[] anArray = {33,51,43,22,61,51,47};
int totalVote = 0;
& for(int i=0; i<anArray.length; i++)
& { totalVote+=anArray[i]; }
System.out.println("Vote= "+totalVote);
& }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions