Powered by Blogger.

Sunday, March 24, 2013

23.How computes the volume of a cube:


#include<stdio.h>
int main()
{
    int len,width,height,cube;
    printf("Enter a len of your choice:\n");
    scanf("%d",&len);
    printf("Enter a width of your choice:\n");
    scanf("%d",&width);
    printf("Enter a hright of your choice:\n");
    scanf("%d",&height);
    cube=len*width*height;
    printf("cube=%d",cube);
    return 0;
}

1 comments: