Write one computer program in BASIC language to solve the problem given below. Calculate the average height of three trees (A-23 mtr., B-24 mtr., C=25 mtr.)
Answers
Answered by
0
Answer:
public class Main
{
public static void main(String[] args) {
int a = 23 , b = 24 , c = 25;
int avg = (a+b+c) / 3;
System.out.println("The average height of the 3 trees is:" + avg);
}
}
Explanation:
output - The average height of the 3 trees is: 24
Answered by
1
Answer:
public class Main
{
public static void main(String[] args) {
int a = 23 , b = 24 , c = 25;
int avg = (a+b+c) / 3;
System.out.println("The average height of the 3 trees is:" + avg);
}
}
output - The average height of the 3 trees is: 24
good evening miss mihika:(
Similar questions