0% found this document useful (0 votes)
2 views

C Program

The document outlines the assessment structure for the Data Structures and Algorithms course (CSA2101), detailing weekly programming tasks, record writing, and lab tests totaling 100 marks. It includes specific C programming tasks such as checking number properties, finding the largest of three numbers, and implementing loops and functions. The document serves as a guide for students to complete their lab assignments and prepare for assessments.

Uploaded by

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

C Program

The document outlines the assessment structure for the Data Structures and Algorithms course (CSA2101), detailing weekly programming tasks, record writing, and lab tests totaling 100 marks. It includes specific C programming tasks such as checking number properties, finding the largest of three numbers, and implementing loops and functions. The document serves as a guide for students to complete their lab assignments and prepare for assessments.

Uploaded by

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

Data Structures and Algorithms( CSA2101)

Assessment for Lab:


• Weekly Programs:Each week, students complete a program.
• Marks per program: 4 marks.
• Total weeks: 15.Total marks for weekly programs(Observation):
15 × 4 = 60 Marks
• Record Writing:Marks allotted: 10 marks.
• Lab Tests:Number of tests: 2.
• Marks per test: 15 marks.
• Total marks for lab tests: 2 × 15 = 30 Grand Total: 60 + 10 + 30 =
100 Marks
C BASIC
1. C Program to Check Whether a Number is Positive, Negative, or Zero (if
Statement)
2. C Program to Find the Largest of Three Numbers (if else Statement)
3. C Program to Grade a Student Based on Marks (if else-if Statement)
4. Using for Loop: C Program to Print Multiplication Table
5. Using While Loop: C Program to Find the Sum of Digits
6. Using do While Loop: C Program to Keep Asking for Input Until Positive Number
is Entered
7. C Program to Add Two Numbers Using a Function
8. C Program to Find Factorial of a Number Using a Function
9. Program to Check if a Number is Even or Odd Using a Function
C BASIC
1.Write a C program to take an integer as input and determine if it is even or odd.
Use an if-else statement.
2.Write a c program to take three numbers as input and print the largest among
them using nested if-else statements.
3.Write a C program to Print Numbers from 1 to N.
4.Write a C program to check if a number is prime using a for loop.
5. Write a C program to Print the following pattern using nested loops for N=4N =
4N=4:
*
**
***
****

You might also like