Untitled

mail@pastecode.io avatar
unknown
plain_text
20 days ago
1.1 kB
3
Indexable
Never

        /* RONALD S. MARTINEZ MARTINEZ. COP2800-2247-13977 */
        
        /*
        System.out.print("      J       A        V     V       A");
        System.out.print("\n      J      A A        V   V       A A");
        System.out.print("\n  J   J     AAAAA        V V       AAAAA");
        System.out.print("\n   J J     A     A        V       A     A");
        */
        
        /*
        System.out.println(4.0 * (1-(1.0/3)+(1.0/5)-(1.0/7)+(1.0/9)-(1.0/11)));
        System.out.print(4.0 * (1-(1.0/3)+(1.0/5)-(1.0/7)+(1.0/9)-(1.0/11)+(1.0/13)));
        */
        /*
        //area and perimeter of a circle with radius 5.5
        //perimeter = 2 * pi * radius
        //area = radius * radius * pi
        System.out.print("A circle has a radius of 5.5");
        System.out.print("\nIts perimeter is " + (2 * Math.PI * 5.5));
        System.out.print("\nAnd its area is " + (Math.PI * 5.5 * 5.5));
        */

        /*
        //area and perimeter of a rectangle 
        //width 4.5 length 7.9
        System.out.print("The area of a rectangle\nwith a width of 4.5 and a length of 7.9\nis " + (4.5 * 7.9));
        */
Leave a Comment