Unit 1 lesson 5 activity 2 edhesive
Write a program which takes a three digit number as an input, then prints the digits of this number one per line in reverse order.
Hint: Break this challenge down into repetitions of the steps used for activity 1. Using multiple variables will let you store digits and intermediate results you need.
Sample run:
Please enter a three digit number:
678
Here are the digits:
8
7
6
Answers
Climate change will reduce energy demand for heating and increase energy demand for cooling in the residential and commercial
sectors (robust evidence, high agreement); the balance of the two depends on the geographic, socioeconomic, and technological conditions.
Increasing income will allow people to regulate indoor temperatures to a comfort level that leads to fast growing energy demand for air
conditioning even in the absence of climate change in warm regions with low income levels at present. Energy demand will be influenced by
changes in demographics (upward by increasing population and decreasing average household size), lifestyles (upward by larger floor area of
dwellings), the design and heat insulation properties of the housing stock, the energy efficiency of heating/cooling devices, and the abundance
and energy efficiency of other electric household appliances. The relative importance of these drivers varies across regions and will change over
time. {10.2}