Skip to content

Segitiga siku #10

@andreanhenkisaputro

Description

@andreanhenkisaputro

package com.dicoding.javafundamental.bangundatar;

public class SegitigaSiku implements BangunDatar {
SegitigaSiku() {
}
@OverRide
public double luas(int s1, int s2) {
return (0.5 * s1 * s2);
}
@OverRide
public double keliling(int s1, int s2) {
return (s1 + s2 + Math.sqrt((s1 * s1) + (s2 * s2)));
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions