Skip to content

CSE114 - Programming & Problem Solving Lab (PPSL) | DIU

Notifications You must be signed in to change notification settings

lemonadeforlife/lab-report-01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab Report 01

Problems:

1. Write a C program to read and display values of all basic data types.

2. Write a C program to input two numbers and find their sum.

3. Write a C program to input two numbers and perform all

arithmetic operations (addition, subtraction, multiplication, and division).

4. Write a C program to input the length and width of a rectangle and find its perimeter.

5. Write a C program to input the length and width of a rectangle and find its area.

6. Write a C program to input the radius of a circle and find its diameter, circumference, and area.

7. Write a C program to input a length in centimeters and convert it into meters and kilometers.

8. Write a C program to input a temperature in Celsius and convert it to Fahrenheit.

9. Write a C program to convert a given number of days into years, weeks, and days.

10. Write a C program to find the power of any number (x^y).

11. Write a C program to input a number and calculate its square root.

12. Write a C program to input two angles of a triangle and find the third angle.

13. Write a C program to input the base and height of a triangle and find its area.

14. Write a C program to input marks for five subjects and calculate the total marks, average.

About

CSE114 - Programming & Problem Solving Lab (PPSL) | DIU

Resources

Stars

Watchers

Forks

Languages