1. Write a Java program input a base and height of a triangle and calculate its area
2. Input 5 numbers and find out its mean
Answers
Answer:
Explanation:
1)class AreaOfTriangle. {
public static void main(String args[]) {
Scanner s= new Scanner(System. in);
System. out. println("Enter the width of the Triangle:");
double b= s. nextDouble();
System. out. println("Enter the height of the Triangle:"); double h= s. nextDouble();
2)Input the 5 numbers :
1
2
3
4
5
The sum of 5 no is : 15
The Average is : 3.0
Answer:
please
Explanation:
I am so bored snap id is kboy5509 text me ig id Arshkhan8874