This repository contains my personal solutions and task implementations for the Computer Programming Laboratory course assignments of Eastern University.
| Parameter | Detail |
|---|---|
| University | Eastern University |
| Course Code | 06131204 |
| Course Title | Computer Programming Laboratory |
| Topic | Structured Programming (C Language) |
- Print "Hello World".
- Print Student ID.
- Declare variables and take input using
scanf(). - Display output using
printf().
- Calculate the average and sum of 3 numbers.
- Expression Simplification (e.g.,
3+4*2/6*(5-3)%3). - Demonstrate Pre-increment (
++i) vs Post-increment (i++).
- Find the smaller of two numbers.
- Check if a number is Even or Odd.
- Leap Year Checker.
- Positive or Negative Number Checker.
- Calculate the sum of a series.
- Print numbers from 1 to 10.
- Extract and print digits from Student ID.
- Print Multiplication Table.
- Find Prime Numbers in a range.
- Calculate Sum of Factors / Perfect Numbers.
- Right-Angle Triangle.
- Rectangle/Square Pattern.
- Pyramid Pattern.
- Array declaration and initialization.
- Calculate Sum, Average, Maximum, and Minimum of an array.
- Nested array initialization.
- Calculate Sum of specific rows and columns.
- String declaration and standard functions (
strcpy,strlen,strcmp). - Count vowels and consonants.
- Reverse a string.
- User-defined function declaration and calling.
- Function to add fractional numbers.
- Area of a triangle using a function.
- Clone this repository to your local machine.
- Open the folder in your C IDE or Terminal.
- Compile the
adnan.cfile:g++ adnan.c -orun
- Run the application:
./run
Md. Adnan Sami
Student, Dept. of CSE
🌐 Portfolio: Visit My Portfolio Website
💻 GitHub: Visit My GitHub Profile