There are 3 layers in the hierarchy of cloud computing.
1) Infrastructure as a service (IaaS):It provides cloud infrastructure in terms of hardware as like memory, processor, speed etc.
2) Platform as a service (PaaS):It provides cloud application platform for the developer.
3) Software as a service (SaaS)::It provides the cloud applications to users directly without installing anything on the system. These applications remains on cloud.