hba
  • 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
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
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.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
hba
  • hba
@ajprincess
anonymous
  • anonymous
Is this in a method?
KonradZuse
  • KonradZuse
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

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

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

Looking for something else?

Not the answer you are looking for? Search for more explanations.