SlideShare a Scribd company logo
1 of 1
#include<stdio.h> 
#include<conio.h> 
main () 
{ 
float tempC, tempF; 
clrscrn(); 
printf ("Enter the value of Temperature in Celcius: "); 
scanf ("%f", &tempC); 
tempF = (1.8 * tempC) + 32; 
printf ("The value of Temperature in Fahreinheit is: %f", tempF); 
getch(); 
return 0; 
}

More Related Content

What's hot (20)

C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)
 
Snake.c
Snake.cSnake.c
Snake.c
 
Game Analytics Cluster Scheduler
Game Analytics Cluster SchedulerGame Analytics Cluster Scheduler
Game Analytics Cluster Scheduler
 
Double linked list
Double linked listDouble linked list
Double linked list
 
DataStructures notes
DataStructures notesDataStructures notes
DataStructures notes
 
The Ring programming language version 1.9 book - Part 86 of 210
The Ring programming language version 1.9 book - Part 86 of 210The Ring programming language version 1.9 book - Part 86 of 210
The Ring programming language version 1.9 book - Part 86 of 210
 
VLSI Sequential Circuits II
VLSI Sequential Circuits IIVLSI Sequential Circuits II
VLSI Sequential Circuits II
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
ภาษาซี
ภาษาซีภาษาซี
ภาษาซี
 
10740737 1599055096995598 1135912358_n
10740737 1599055096995598 1135912358_n10740737 1599055096995598 1135912358_n
10740737 1599055096995598 1135912358_n
 
timingExercise
timingExercisetimingExercise
timingExercise
 
Looping in C
Looping in CLooping in C
Looping in C
 
Exp 8...
Exp 8...Exp 8...
Exp 8...
 
C programms
C programmsC programms
C programms
 
Single linked list
Single linked listSingle linked list
Single linked list
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
Program to find the avg of two numbers
Program to find the avg of two numbersProgram to find the avg of two numbers
Program to find the avg of two numbers
 
C PROGRAMS
C PROGRAMSC PROGRAMS
C PROGRAMS
 
Ejercicios
EjerciciosEjercicios
Ejercicios
 
week-5x
week-5xweek-5x
week-5x
 

Celcius to fahreinheit

  • 1. #include<stdio.h> #include<conio.h> main () { float tempC, tempF; clrscrn(); printf ("Enter the value of Temperature in Celcius: "); scanf ("%f", &tempC); tempF = (1.8 * tempC) + 32; printf ("The value of Temperature in Fahreinheit is: %f", tempF); getch(); return 0; }