Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed Lahendus1.class
Binary file not shown.
28 changes: 0 additions & 28 deletions Lahendus1.java

This file was deleted.

Binary file added funktsioon.class
Binary file not shown.
23 changes: 23 additions & 0 deletions funktsioon.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
public class funktsioon{

//teisendan kilod naltesse ja vasutpidi
static double naeltesse(double kilod){
return kilod*2.20462;
}
static double kilodesse(double naelad){
return naelad*0.453592;
}
public static void main(String[] args){
System.out.println(naeltesse(20));
System.out.println(kilodesse(45));


}

}

/*
[georvalg@greeny t01funktsioonid]$ java funktsioon
44.0925
20.41164
*/
5 changes: 0 additions & 5 deletions juhend.txt

This file was deleted.