2-1. centimeter to ft. Inch (15)

Source: Internet
Author: User

If we know the ft Foot and inch values of the imperial length, the corresponding meter is (foot + inch/12) * 0.3048. Now, if the user inputs a centimeter, what are the feet and inches of English letters in length? Don't forget 1 feet equals 12 inch.

Input Format:

The input returns a positive integer in the unit of centimeter in a row.

Output Format:

Output The centimeter in a row, which corresponds to the full length of the inch and the full length of the inch. Separate them with spaces in the middle.

Input example:

170

Output example:

5 6


1 # include <stdio. h> 2 int main () 3 {4 int foot, inch; 5 Int cm; 6 7 scanf ("% d", & cm); 8 foot = (CM/100.0) /0.3048); 9 inch = (CM/100.0)/0.3048)-foot) * 12; 10 printf ("% d", foot, inch ); 11 12 Return 0; 13}

 




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.