Sei sulla pagina 1di 2

C and Data Structures Lab Manual

Lab Manual
Computer Engineering and Information Technology III Semester / K Scheme
Prepared By K.ManiRaj M.Sc.,M.Phil., & P.Vinitha M.Sc M.Phil Lecturer, Department of CE/IT, M.S.P.V.L Polytechnic College, Pavoorchatram.
M.S.P.V.L Polytechnic College, Pavoorchatram Page 1

C and Data Structures Lab Manual

1A
Aim:

Celsius to Fahrenheit Conversion and vice versa

To write a C program to convert the given temperature in degree centigrade to Fahrenheit and vice versa.

Flow chart:

Start

Read C

F=9.0/5.0*c+32

Print F

Read F

C=5.0/9.0*(F-32)

Print C

Stop

M.S.P.V.L Polytechnic College, Pavoorchatram

Page 2

Potrebbero piacerti anche