Question: ( in C + + ) Metric Write a program in Metric / main . cpp that reads pairs of metric distances ( m m
in C
Metric
Write a program in Metricmaincpp that reads pairs of metric distances
or km from the standard input stream until there are no more
values. For each pair, print if the first distance is larger than the second.
Example input:
mm mm
mm mm
mm mm
cm mm
cm mm
cm mm
km m
cm m
Expected output:
mm is smaller than mm
mmmathrm is larger than mm
mmmathrm is the same as mm
cmmathrm is the same as mm
cmmathrm is larger than mm
cmmathrm is smaller than mm
kmmathrm is smaller than m
cm is the same as m
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
