You are on page 1of 23

PS Practicals

B.tech CSE CSTI


Name- Madhav Aggarwal
Roll no.-2K21CSUN05016

LAB-1
LAB-2
LAB-3
4. Draw a circle.
5.Draw a hexagon.
6.Draw a Triangle.
Lab-4
1. Write a program in C to print “Welcome to Manav Rachna”.

2. WAP in C to read and display an integer number,real number


andcharacter.

3. WAP in C that prints the result of addition of two numbers.


4. WAP in C to read a character and display its ASCII Value.

5. WAP in C to find the size of int,float double and charvariable.


(Use %lu or %zu as well as sizeof(variable) function)
6. WAP in C to calculate the average of two numbers given by
theuser.

7. WAP in C to subtract, multiply ,divide and modulo two


integernumbers taken as an input from the user.
8. WAP in C to subtract, multiply ,divide and modulo two
realnumbers taken as an input from the user.

9. WAP in C to calculate the area of a rectangle from the userinput


length and breadth.
10. WAP in C to calculate the area of the circle for the user
inputradius. Take the value of pi a constant i.e 3.14.(const float
pi=3.14)

Lab-5
Q1.
Q2.
Q3.

Q4.
Q5.

Q6.
Lab-6
Q1.

Q2.
Q3.

Q4.
Q5.

Q6.
Q7.

You might also like