Computer Science, asked by pjntamixclips, 2 months ago

Write a program to accept a temperature in Fahrenheit and convert to celsius using function method​

Answers

Answered by caanusha7
5

Answer:

ᴘʀᴏɢʀᴀᴍ

ᴠᴏɪᴅ ᴍᴀɪɴ()

{ ꜰʟᴏᴀᴛ ᴄᴇʟꜱɪᴜꜱ,ꜰᴀʜʀᴇɴʜᴇɪᴛ;

ᴘʀɪɴᴛꜰ("\ɴᴇɴᴛᴇʀ ᴛᴇᴍᴘᴇʀᴀᴛᴜʀᴇ ɪɴ ꜰᴀʜʀᴇɴʜᴇɪᴛ:"); ꜱᴄᴀɴꜰ("%ꜰ",&ꜰᴀʜʀᴇɴʜᴇɪᴛ);

// ꜰᴀʜʀᴇɴʜᴇɪᴛ ᴛᴏ ᴄᴇʟꜱɪᴜꜱ ᴄᴏɴᴠᴇʀꜱɪᴏɴ ꜰᴏʀᴍᴜʟᴀ. ᴄᴇʟꜱɪᴜꜱ=(ꜰᴀʜʀᴇɴʜᴇɪᴛ - 32)*5/9;

// ᴘʀɪɴᴛ ᴛʜᴇ ʀᴇꜱᴜʟᴛ. ᴘʀɪɴᴛꜰ("\ɴᴄᴇʟꜱɪᴜꜱ = %.3ꜰ",ᴄᴇʟꜱɪᴜꜱ); //.3ꜰ ᴍᴇᴀɴꜱ ᴄᴏʀʀᴇᴄᴛ ᴛᴏ 3 ᴅᴇᴄɪᴍᴀʟ ᴘʟᴀᴄᴇꜱ.

Answered by arvisingh2020
1

Answer:

You can use the formula of Farhenheit to Celsius convertion in your function. And formula is °F = (9/5 × °C) + 32.

Explanation:

You need to mention the language of coding. like C++ or python etc.

Similar questions