How to make a program that calculates the user inputs into an equation to print an answer?
lonewolf392

I want to write a program that calculates the area of a triangle that can define and give an answer based on user inputs to help fill in the equation but also, define the answer for the area.

You are viewing a single comment. View All
Answered by CodingCactus [earned 5 cycles]
View Answer
ronniegertman

@lonewolf392 just do:
double area = (h*b)/2;
System.out.println(area);