Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

  • hba

int b1, b2, h; float area; Console.WriteLine("please enter b1"); b1=int.Parse(Console.ReadLine()); Console.WriteLine("please enter b2"); b2=int.Parse(Console.ReadLine()); Console.WriteLine("please enter h"); h=int.Parse(Console.ReadLine()); area = (b1 + b2) * h / 2; Console.WriteLine(area); Console.ReadLine();

Computer Science
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
  • hba
Is this in a method?
Idk why you are using the Console, but I would use Java.Util.Scanner instead.... http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

  • hba
i did it thanks anyways.
with scanner or console?
  • hba
With console.
  • hba
Its not Java,Its C#
oic :O.
  • hba
See i changed it lol,I was just acting stupid :P

Not the answer you are looking for?

Search for more explanations.

Ask your own question