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

Lab Question 1

The document outlines a series of programming tasks for a Structured Programming Language Lab (CSE-510202) that require writing C programs. The tasks include calculating areas and perimeters of geometric shapes, determining properties of numbers, and generating patterns. Each task is designed to enhance programming skills in C through practical exercises.

Uploaded by

redlevel929
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Lab Question 1

The document outlines a series of programming tasks for a Structured Programming Language Lab (CSE-510202) that require writing C programs. The tasks include calculating areas and perimeters of geometric shapes, determining properties of numbers, and generating patterns. Each task is designed to enhance programming skills in C through practical exercises.

Uploaded by

redlevel929
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CSE-510202 (Structured Programming Language Lab)

1.​ Write a C program to find the area and perimeter of a triangle

2.​ Write a C program to find the area and perimeter of a rectangle.

3.​ Write a C program to determine whether a number is even or odd.

4.​ Write a C program to swap two numbers using a third variable.

5.​ Write a C program to find if a triangle is a Right triangle or not.

6.​ Write a C program to find a triangle is equilateral, isosceles or scalene.

7.​ Write a C program to find the largest among three numbers

8.​ Write a C program to find whether a year is a leap year or not

9.​ Write a C program to convert the given temperature in Fahrenheit to Celsius.

10.​Write a C program to find the factorial of a number.

11.​ Write a C program to find all possible roots of a quadratic equation

12.​ Write a C program to find the summation of even numbers from 1 to n.

13.​ Write a C program to find the sum of the following series

S = 1 + 1/22 + 1/33 + … … + 1/nn

14.​ Write a C program to print the digits of a number.

15.​ Write a C program to count the number of digits in a given number.

16.​ Write a C program to find the summation of digits of a given number.

17.​ Write a C program to find the print first n Fibonacci Number.

18.​Write a c program to print the Square star pattern.

19.​ Write a C program to display the pyramid pattern.


20.​Write a C program to display the Right Triangle Star pattern.

You might also like