Created
March 25, 2015 14:38
-
-
Save Sergaav/64b10945b50048fc4065 to your computer and use it in GitHub Desktop.
lenght of circle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gmail.sergaav.dz1_3; | |
import java.util.Scanner; | |
public class dz1_3 { | |
public static void main(String[] args) { | |
Scanner sc=new Scanner(System.in); | |
System.out.println("Введите радиус окружности"); | |
double radius; | |
radius=sc.nextDouble(); | |
double ringlength; | |
ringlength=2*Math.PI*radius; | |
System.out.println("Длинна окружности составляет: "+ ringlength); | |
sc.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment