Pages

Java print pi value


Simple java program below will print pi value in command prompt.

****************************************************************
COMPLETE SOURCE CODE FOR : PrintPiValue.java
****************************************************************


public class PrintPiValue
{
public static void main(String[]args)
{
System.out.println("PI value is : "+Math.PI);
}
}


****************************************************************
JUST COMPILE AND EXECUTE IT
****************************************************************
Related Posts Plugin for WordPress, Blogger...

I Also Can Create T-Shirt Logo For You