Ask Question
11 May, 04:21

Write a program to calculate the volume of a cube which contains 27 number of small identical cubes on the basis of the length of small cube input by a user.

+3
Answers (1)
  1. 11 May, 08:07
    0
    This program is written in python programming language.

    The program is self explanatory; hence, no comments was used; However, see explanation section for line by line explanation.

    Program starts here

    length = float (input ("Length of small cube: "))

    volume = 27 * length**3

    print ("Volume: " + (str (volume)))

    Explanation:

    The first line of the program prompts the user for the length of the small cube;

    length = float (input ("Length of small cube: "))

    The volume of the 27 identical cubes is calculated on the next line;

    volume = 27 * length**3

    Lastly, the calculated volume of the 27 cubes is printed

    print ("Volume: " + (str (volume)))
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a program to calculate the volume of a cube which contains 27 number of small identical cubes on the basis of the length of small ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers