Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AreaTriangulo{
- public static void main(String[] args){
- System.out.println(areaDoTriangulo(2, 10));
- }
- public static double areaDoTriangulo(double base, double altura){
- return (base * altura) / 2;
- }
- }
Add Comment
Please, Sign In to add comment