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

Addition of Two Matrix in C

Matrix addition in C is used to add two matrices. i.e. calculate and print the sum of them. Example: Given two matrices of same size, this program will add the corresponding elements of each matrix and print the result. Input: First Matrix: Second Matrix: Output: + = = Problem Description Write a C program which … 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 Insert an Element in an Array

Problem Description Write a C Program to insert an element in an Array. What is Array? An array is a collection of similar data elements stored in a contiguous memory location. Example: arr[5] = {2,7,1,23,5} The new element we are entering here is 15 and the position where the element must be inserted is “4”. … Read more

advertisement

C Program to Reverse an Array

Reversing an array means substituting the last element in the first position and vice versa and doing such a thing for all elements of the array. For example, first element is swapped with last, second element is swapped by second last and so on. Such arrays where the original and reversed arrays are equal are … 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

Priority Scheduling Program in C

Priority Scheduling is a CPU scheduling algorithm in which the CPU performs the task having higher priority at first. If two processes have the same priority then scheduling is done on FCFS basis (first come first serve). Priority Scheduling is of two types : Preemptive and Non-Preemptive. Preemptive: In this case, resources can be voluntarily … Read more

advertisement

C Program to Find Compound Interest

Problem Description: Write a C program to calculate compound interest. What is Compund Interest? Compound Interest is the interest on principal as well as the interest earned over the period. That is for the first year, it will return interest on principal, but from the second year it’s new principal will be the original principal … Read more

advertisement

C Program to Find Square Root of a Number

Square Root Program in C: The square root of a number is defined as the value, which gives the number when it is multiplied by itself i.e half power of the number. The radical symbol √ is used to indicate the square root. Examples: If the number is 25, its square root is 5. If … Read more

advertisement

C Program to Find Nth Armstrong Number

A positive integer of n digits is said to be an Armstrong number of order n if the sum of its digits raised to the nth power equals the number itself. Armstrong Number Formula: wxyz… = pow(w,n) + pow(x,n) + pow(y,n) + pow(z,n) + ….. Example: 370 (n=3) because 33 + 73 + o3 = … 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.