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.

@lonewolf392 ok i see, for a second i thought your program is in java: here are some changes you may want to make: 1. when you input a number you have to call it so: a = float(input("Enter a: ")) 2. when you print the area you may consider removing the int at the beggining of the print command. 3. you didn't print area- which represents the area of the triangle at the print command so: print(area) hope that helped solving your problem

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

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.

input the side and the hight of th triangle and multiple then, then divide the answer by 2 and there you go- print the answer

@ronniegertman I'll try that

@lonewolf392 yw:)

@ronniegertman that didn't work, it still needs to find a way for the program to define the b and h to divide it by 2

@lonewolf392 just do:

double area = (h*b)/2;

System.out.println(area);

@ronniegertman here a link to see what I'm dealing because even though, I do that I still find an error - https://repl.it/@lonewolf392/Unit-8B

@lonewolf392 ok i see, for a second i thought your program is in java:

here are some changes you may want to make:

1. when you input a number you have to call it so:

a = float(input("Enter a: "))

2. when you print the area you may consider removing the int at the beggining of the print command.

3. you didn't print area- which represents the area of the triangle at the print command so:

print(area)

hope that helped solving your problem