Temperature Conversion Program in C

There are many ways to measure temperature, but the three most common units of temperature measurement are Kelvin, Celsius, and Fahrenheit. Fahrenheit is a unit to measure the temperature on Fahrenheit scale. It is expressed in °F (degree Fahrenheit). On the Fahrenheit scale, the freezing point and boiling point of water are defined as 32° … Read more

advertisement

C program to Convert Fahrenheit to Celsius

Problem Description Write a C program that takes a fahrenheit value as input and convert it to a celsius value. What is Fahrenheit and Fahrenheit scale? Fahrenheit is a unit to measure the temperature on Fahrenheit scale. It is expressed in °F (degree Fahrenheit). On the Fahrenheit scale, the freezing point and boiling point of … Read more

advertisement

C Program to Convert Celsius to Fahrenheit

Problem Description Write a C program that takes a celsius value as input and convert it to a fahrenheit value. What is Celsius? Celsius is a unit used to measure the temperature on Celsius scale. It was developed by Swedish astronomer Anders Celsius and is often denoted by °C(degree Celsius). What is Celsius scale in … Read more

advertisement

C Program to Convert Roman Number to Decimal Number

This is a C Program to Convert Roman Number to Decimal Number. Problem Description This program takes a roman number as input and converts it to decimal number. Problem Solution 1. Take a roman number as input. 2. Using switch statement define the value of each roman digit. 3. Through switch statement access each digit … Read more

advertisement

C Program to Convert Octal to Binary

This is a C program to Convert Octal to Binary. Problem Description This program takes a octal number as input and converts it into binary. Problem Solution 1. Take a octal number as input. 2. Print the binary value of each digit of a octal number. Use switch statement and while loop to do this. … Read more

advertisement

C Program to Convert Binary to Gray Code using Recursion

This is a C program to convert binary code of a number into its equivalent gray’s code using recursion. Problem Description This C program using recursion evaluates the gray code equivalent of a binary number. Problem Solution A gray is also represented using 0s and 1s. The speciality of gray code is that only one … Read more

advertisement

Decimal to Binary in C

Decimal Numbers: Decimal numbers are the numbers in the decimal system. They are represented by the digits 0 to 9. For example, the number 123 is represented by the digits 1, 2, and 3. The number 0 is represented by the digit 0. The number 123456789 is represented by the digits 1, 2, 3, 4, … Read more

advertisement

C Program to Convert Octal to Decimal

This is a C program to convert octal number to decimal. Problem Description This program takes a octal number as input and converts it into decimal number. Problem Solution 1. Take a octal number as input. 2. Multiply each digits of the octal number starting from the last with the powers of 8 respectively. 3. … Read more

advertisement

C Program to Convert Binary to Gray Code without Recursion

This is a C program to convert binary code of a number into its equivalent gray’s code without using recursion. Problem Description This C program, using iteration, evaluates the gray code equivalent of a binary number. Problem Solution A gray is also represented using 0s and 1s. The speciality of gray code is that only … Read more

advertisement

C Program to Convert Numbers to Roman Numerals

This is a C program to Convert Numbers to Roman Numerals. Problem Description This program takes a decimal number and converts it to roman number. Problem Solution 1. Take a decimal number as input. 2. Check if the number is greater than 1000 or 900 or 500 or 400 or 100 or 90 or 50 … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.