Skip to content

Commit

Permalink
find-volume-of-cube-swift(codinasion#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
error707-persona committed Oct 2, 2022
1 parent dcfbfbe commit 435ddef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions program/find-volume-of-a-cuboid/find-volume-of-cube.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var cubeSide : Int = 2

// Finding the volume of the cube
var cubeVolume = cubeSide * cubeSide * cubeSide

print("Side - ", cubeSide)
print("So, Volume of the cube- ", cubeVolume)

0 comments on commit 435ddef

Please sign in to comment.