<\/span><\/h2>\n\n\n\n\/\/ C Program to Convert Fahrenheit to Kelvin\n#include <stdio.h>\nint main(){\n float F, kel;\n \n \/\/ Taking input\n printf(\"Enter the temperature in Fahrenheit: \");\n scanf(\"%f\", &F);\n \n \/\/ Fahrenheit to kelvin conversion \n kel = ((5.0 \/ 9) * (F - 32)) + 273.15;\n \n \/\/ Display output\n printf(\"%.2f degree Fahrenheit = %.2f Kelvin\", F, kel);\n return 0;\n}\n<\/pre>\n\n\n\nOutput<\/strong><\/p>\n\n\n\nEnter the temperature in Fahrenheit: 98.6\r\n98.60 degree Fahrenheit = 310.15 Kelvin\r<\/code><\/pre>\n\n\n\n<\/span>How Does This Program Work?<\/strong><\/span><\/h2>\n\n\n\n float F, kel;\n<\/pre>\n\n\n\nIn this program, we have decorated two floating data type<\/strong> variables named F<\/strong> and kel<\/strong>.<\/p>\n\n\n\n \/\/ Taking input\n printf(\"Enter the temperature in Fahrenheit: \");\n scanf(\"%f\", &F);\n<\/pre>\n\n\n\nThe user is asked to enter the temperature in degree Fahrenheit<\/strong>. The entered value gets stored in the F<\/strong> named variable.<\/p>\n\n\n\n \/\/ Fahrenheit to kelvin conversion \n kel = ((5.0 \/ 9) * (F - 32)) + 273.15;\n<\/pre>\n\n\n\nWe convert the temperature from degree Fahrenheit to Kelvin<\/strong> using the formula: Kelvin = ((Fahrenheit -32) * (5\/9)) + 273.15<\/strong>.<\/p>\n\n\n\n \/\/ Display output\n printf(\"%.2f degree Fahrenheit = %.2f Kelvin\", F, kel);\n<\/pre>\n\n\n\nThe result gets displayed on the screen using the printf()<\/strong> function.<\/p>\n\n\n\n<\/span>Conclusion<\/strong><\/span><\/h2>\n\n\n\nI hope after going through this post, you understand how to convert temperature from degree Fahrenheit to Kelvin using the C<\/strong> Programming language.<\/p>\n\n\n\nIf you have any doubts regarding the tutorial, then contact us in the comment section. We will be delighted to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"
In this post, we will learn how to convert temperature from degree Celsius to Kelvin using the C Programming language.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[167,294],"tags":[648,206],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/posts\/5870"}],"collection":[{"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/comments?post=5870"}],"version-history":[{"count":3,"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/posts\/5870\/revisions"}],"predecessor-version":[{"id":5874,"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/posts\/5870\/revisions\/5874"}],"wp:attachment":[{"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/media?parent=5870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/categories?post=5870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingbroz.com\/wp-json\/wp\/v2\/tags?post=5870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}