Page not loading? Try clicking here.
Placeholder

#110
Language restricted

Input - Formative Assessment 5 1s - MB

Problems

Write a program that takes a real number in yards, converts it to centimeters (cm), and prints both the input value and the converted value rounded to the first decimal place as shown in the output example. (Note: 1 yard = 91.44 cm.)  

 

For input, first print "yard? " and then receive a real number.  Use "double" for the real number.


Example

yard? 10.1
10.1yard = 923.5cm

Source

자기주도C언어프로그래밍

You must sign in to write code.