Temperature Converter Object

PHP Medium 7 views
Back to Questions

Problem Description

Make a Temperature class with setC(c) and getF(). Input c, print Fahrenheit with 2 decimals.

Input Format

One number c.

Output Format

One number f.

Sample Test Case

Input:
25
Output:
77.00

Constraints

-1000

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next