//Write a program
//to print out the following sin table
//as follow
/*
sin(0)=0.0
sin(10)=0.17364817766693033
sin(20)=0.3420201433256687
sin(30)=0.49999999999999994
sin(40)=0.6427876096865393
sin(50)=0.766044443118978
sin(60)=0.8660254037844386
sin(70)=0.9396926207859083
sin(80)=0.984807753012208
sin(90)=1.0
*/
public class sintable
{
public static void main(String args[])
{
int i;
double r,sv;
for(i=0;i<=90;i+=10)
{
r=i*Math.PI/180;
sv=Math.sin(r);
System.out.println("sin(" + i + ")=" +sv);
}
}
}
//to print out the following sin table
//as follow
/*
sin(0)=0.0
sin(10)=0.17364817766693033
sin(20)=0.3420201433256687
sin(30)=0.49999999999999994
sin(40)=0.6427876096865393
sin(50)=0.766044443118978
sin(60)=0.8660254037844386
sin(70)=0.9396926207859083
sin(80)=0.984807753012208
sin(90)=1.0
*/
public class sintable
{
public static void main(String args[])
{
int i;
double r,sv;
for(i=0;i<=90;i+=10)
{
r=i*Math.PI/180;
sv=Math.sin(r);
System.out.println("sin(" + i + ")=" +sv);
}
}
}