Work Sheet No.1

Do the following Problems.
  1. Write a Java Program to Calculate the value of Pi from the infinite Series Pi = 4 - 4/3 +4/5-4/7+4/9-4/11....
  2. Write a Java Program to print
    *
    **
    ***
    ****
    ****
    
  3. What does the following Java Program segment do?
    for (i=1;i<=5; i++) {
    
    for (j=1;j<=3; j++) {
    
    for(k=1;k<=4;k++) 
     System.out.print('*');
    System.out.println();
    }
    System.out.println();