Untitled
Never
import java.util.Scanner; public class main { public static void main(String[] args) { // שאלה 1.1 //קולטים רדיוס של מעגל Scanner s = new Scanner(System.in); System.out.println("please enter radius"); int radius = s.nextInt(); //print the answer we get from the functions System.out.println("the circle paremter for this radius is:"+calcParemeter(radius)+"and the area is:"+ calcArea(radius)); } //function to calc circle paremeter public static double calcParemeter(int a) { double result = 0; result= 2*3.14*a; return result; } //function to calc circle area public static double calcArea(int b) { double result = 0; result = 3.14*power(b); return result; } //function to calc powe - use in the other functions public static double power (int a){ double result =0; result = a*a; return result; } }
Raw Text
-
Tramadol
14 min ago
-
A Few Drinks... And More!
19 min ago
-
Untitled
37 min ago
-
Untitled
42 min ago
-
Untitled
46 min ago
-
https://middlesexcountynj.powerappsportals.us/forums/general-discussion/77f75e3f-c7fe-ee11-a73d-001d
48 min ago
-
spider-man
49 min ago
-
The stepmother steals boyfirends. Sol Peterson
49 min ago
-
Untitled
50 min ago
-
AM4Z1NG S3X VID3OS .. THE BEST
53 min ago