- Here's the challenge to make your
study of C a little bit more interesting.
The objective of this challenge are for you
to demonstrate an ability to solve
computational problems in C,
as we have seen in the past several videos.
In addition, I will be asking you to
translate some mathematical formulas
into expressions and statements in C.
Specifically, here's what you have to do.
Write a program in C that receives
as input a height in centimeters.
The problem will then calculate and display the following:
The height in feet and inches.
All you have to do is figure out what is
the conversion between inches, feet, and centimeters.
Be a little bit creative with the way you develop the math,
and use everything you learned so far about
calculations, variables, expressions,
math and statements,
and write a very short and simple program in C.
I estimate that this exercise
should take you about 20 minutes.