hello guys welcome to my channel this is the 15th tutorial in this course and in this tutorial we are going to write a program that's going to take temperature in degre celsius from the user and it's going to convert it to degree Fahrenheit now again you know this program is really very simple it's um just going to ask the user to type in a value you get the value you find out the conversion formula you multiply the value that you have with the factor that you get from the conversion formula and you just get get the output that you need so it's a very simple program and uh I'm just making it because uh I want you guys to have fun along in this course and uh we should always have something interesting to do and this for me it qualifies as interesting right and um let's just get started you can see that I've saved this program it's it's called temperature conversion. C that's the name of the file and on lines 1 and two I have a comment that says input temperature in degree celsius and convert to degree Fahrenheit on line three I have my header file on line four I've declared the main function I have my curly braces so well let's type in our code and uh since we're going to ask the user to give us input we'll obviously have to create uh a variable to store the value and it's going to be a float data type and I'm going to call this variable temp because it's going to hold temperature right so if that makes sense now I'll use print F to ask the user to input the uh temperature in degrees celsius so input temperature in degree celsius right I'll put a colon and uh then a semicolon to terminate the statement and then I'm going to use scanf to get the input and of course we'll have to use the percentage F format specifier because uh we're dealing with the floating uh point value here and uh the address of the variable is and temm we use the address off operator there there and uh well now just just just use the printer statement to display the output on screen and uh display a message first like equivalent temperature in degree Fahrenheit is and you'll have to use the percentage of format specifier again this time because we're displaying um the value the equivalent value in degree Fahrenheit and the conversion formula here is that you have to multiply the temperature in deg celus by 1.8 and then after you perform the multiplication you have to add 32 to it to get the temperature in degre Fen right so we'll have to multiply temp with the 1.8 and then we'll have to add the 32 and we don't have to put you know this thing in parenthesis this thing in parenthesis because we know that the addition operator anyway doesn't enjoy a greater priority than the multiplication operator so this thing this Sub sub expression would be valuated um you know before the addition is performed anyway so we don't have to use parenthesis here for a semicolon to terminate this statement and I'll click on build and run to see the output and there you go I'm asked to input temperature in deg celius and I'm going to put 37 I'm going to supply 37 as the value because I know that that's the normal body temperature normal human body temperature and um I also know that the value of this temperature in degree fahren is 98.6 and that's because I was a whiz kid when I was in school I was uh you know a genius at remembering such Valu so there you go that's it that's the output equivalent temperature in degree Fahrenheit is 98.6 with the followed by what 5 zeros and um that's it you know it's a very simple program and uh it's not complicated at all and uh it just has what 1 2 three four four lines of code and uh it really cannot get simpler than this and I hope you guys had fun watching this one in the next tutorial we're going to discuss something interesting again so thank you so much for watching and um please subscribe to my channel and I'll see you soon