l1-004. Calculate Celsius temperature

Source: Internet
Author: User

l1-004. Calculate Celsius temperature time limit MS Memory limit 65536 KB code length limit 8000 B award Program StandardAuthor Chen Jianhai

Given a Fahrenheit temperature F, the subject required to write a program to calculate the corresponding Celsius temperature c. Calculation formula: C = 5* (F-32)/9. The title guarantees that both the input and output are within the integral type range.

Input format:

The input gives an Fahrenheit temperature in a row.

Output format:

The integer value of Celsius temperature C is output in a row according to the format "Celsius = C".

Input Sample:
150
Sample output:
Celsius = 65
int Main (void) {    float  c,f;    scanf ("%f",&f);    c= (f-D)/9.0*5.0;    printf ("Celsius =%d\n", (int) c);     return 0 ;}

l1-004. Calculate Celsius temperature

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.