Call us at 0700-922-6559 or Click here

Write a program to find volume of a cube using side as input from user in c

#include <stdio.h>    

int main()  


    int a;

     printf(“Enter a: ”);

     scanf(“%d”, &a);

    int volume=a*a*a;  

    printf(“Volume of the cube=%d”,volume);  



Enter a: 5

Volume of the cube=125

Leave a Reply

Your email address will not be published. Required fields are marked *