![genyjoannerubiera](/avatars/23455.jpg)
genyjoannerubiera
09.07.2019 •
Computers and Technology
Identify grammar/logic errors in the following codes and correct them.
(public class tstarray {
public static void main(string args[]){
int a[] = {5, 4, 9};
int avg;
int total;
for(int i=0; i< a.length; i++){
total = 0;
total += a[i];
}
avg = total/a.length;
}
}
Solved
Show answers
More tips
- H Health and Medicine How to perform artificial respiration?...
- H Health and Medicine 10 Tips for Avoiding Vitamin Deficiency...
- F Food and Cooking How to Properly Cook Buckwheat?...
- F Food and Cooking How Many Grams Are In a Tablespoon?...
- L Leisure and Entertainment Carving: History and Techniques for Creating Vegetable and Fruit Decorations...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
- H Health and Medicine What vaccines do children need?...
- H Health and Medicine Reasons for the Appearance of Warts: Everything You Need to Know...
- A Art and Culture How to Learn Screaming: Step-by-Step Guide for Beginners...
- H Health and Medicine Contraceptive Pills After 35: The Importance Of Choosing The Right Medication...
Answers on questions: Computers and Technology
- C Computers and Technology What is the advantage of using keys in a database?...
- C Computers and Technology What are the two ways to use the menu...
- H History Dna is found in the a. vacuole b. chromosomes c. cell membrane d. golgi body...
- M Mathematics Find the unit rate with the second given unit in the denominator. 13,500 m in 250 s a. 54 m over s b. 54 s over m c. 250 s over m d. 13,500 m over s...
- M Mathematics On the first of three tests sally scored 75 points. on the third test her score was one point more than the second test her average on the three test was 82 what were her...
- E English Astandardized test that colleges use to make admissions decisions is the...
- M Mathematics In the slope-intercept equation of a line, which part of the equation gives the y-coordinate of the point where the line crosses the y-axis? a.the constant term b.the coefficient...
- E English Can some one give me some facts about asia...
- H History The conquest of one culture by another usually resulted in all of the following,except a) adoption of cultural characteristics of the vanquished by the conquerors b) adoption...
- E English Which of these are slow pace and fast pace...
Ответ:
2 is for triangle
3 is for surface area
4 is for volume