Thursday, 13 June 2013

calculating cube in java ................

import java.io.*;
class simple_wap_cube1
{
    public static void main(String args[])
    {
        int a=5,c;
        c=a*a*a;
        System.out.println("cube of given numbers is = "+c);
    }
}

No comments: