Euler's Formula: V-E+F=2
For cube: 8-12+6 = 2
2 = 2
Euler's formula deals with shapes called Polyhedra. A Polyhedron is a closed solid shape which has flat faces and straight edges whereas a cylinder is not a polyhedron as it has curved edges so euler's formula doesn't work for cylinder.