0% found this document useful (0 votes)
176 views2 pages

C Lab Manual

This lab manual provides instructions and examples for computer engineering and IT students to complete C programming and data structures labs. The first lab aims to write a program to convert temperatures between Celsius and Fahrenheit by taking a temperature as input, performing the conversion calculation, and printing out the result. The flowchart shows the program will prompt the user to enter a temperature in either Celsius or Fahrenheit, perform the appropriate conversion formula, and display the converted temperature before ending.

Uploaded by

Kishore DM
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views2 pages

C Lab Manual

This lab manual provides instructions and examples for computer engineering and IT students to complete C programming and data structures labs. The first lab aims to write a program to convert temperatures between Celsius and Fahrenheit by taking a temperature as input, performing the conversion calculation, and printing out the result. The flowchart shows the program will prompt the user to enter a temperature in either Celsius or Fahrenheit, perform the appropriate conversion formula, and display the converted temperature before ending.

Uploaded by

Kishore DM
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like