Skip to content

Instantly share code, notes, and snippets.

@Sergaav
Created March 25, 2015 14:38
Show Gist options
  • Save Sergaav/64b10945b50048fc4065 to your computer and use it in GitHub Desktop.
Save Sergaav/64b10945b50048fc4065 to your computer and use it in GitHub Desktop.
lenght of circle
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