Lebanese University
Imperative Programming C/C++ (I1101)
Learn the fundamentals of C/C++ programming from scratch. This course covers variables, conditions, loops, arrays, strings, and functions , everything you need to build strong programming foundations and think like a programmer.
About This Course
This course introduces students to the world of programming through the C/C++ language. Starting from zero, you will learn how computers think and how to write programs that solve real problems. What you will learn: How programs work (input → process → output) Variables, data types, and operators Decision making with if, else, and switch Loops (while, do-while, for) to automate repetitive tasks One-dimensional arrays: storing and processing lists of data Two-dimensional arrays: working with tables and matrices Character arrays and strings: text manipulation Functions: writing reusable, organized code with parameters and return values Problem-solving techniques: digit extraction, classic algorithms (GCD, Fibonacci, Prime, sorting, searching) Structured thinking: breaking complex problems into smaller logical steps The course also includes recorded sessions solving past university exam questions to help students apply concepts and prepare for exams . Who is this for? First-year university students with no prior programming experience. By the end of this course you will: Write complete C programs from scratch Solve mathematical and logical problems using code Store and manipulate data using arrays and strings Build modular programs using functions Understand how to choose the right structure for the right problem Be ready for advanced topics like pointers, dynamic memory, and file handling
Your Instructor
Ali Abo Aliwe
Course Instructor
Course Curriculum
11 modules · 130 videos-
7 minSetup Environment (VS Code Installation)
-
2 minSetup Environment (Tablets and Phones)
-
8 minHistory of C & Its Strengths and Limitations
-
4 minHow C Programs Are Built IDE, Compiler & Linker Explained
-
11 minCore Building Blocks of a Program
-
3 minComments
-
13 minBasic Output in C : printf() and Escape Sequences
-
10 minQuiz Review & Solution
-
8 minIntroduction to Variables & Data Types
-
8 minPrimitive Data Types in C & C++
-
9 minPrimitive Data Types in C & C++ Exercise
-
39 minVariable Declaration & Initialization
-
42 minOperators in C & C++: Arithmetic, Logical & Assignment
-
3 minExpressions & Instructions Explained
-
13 minOperator Precedence
-
22 minOperator Precedence Exercise
-
21 minMathematical Functions in C
-
23 minType Conversion & Casting
-
7 minType Conversion & Casting Exercises
-
17 minOutput in C – printf()
-
16 minprintf() Exercise
-
13 minInput in C – scanf()
-
15 minOutput in C++ – cout
-
11 mininput in C++ – cin
-
10 minKey Differences Between C and C++ InputOutput
-
5 minC Exercise 01 – Character Input & Output
-
11 minC Exercise 02 – Temperature Conversion (Fahrenheit to Celsius)
-
12 minC Exercise 03 – Square Distance Between Two Points
-
4 minC Exercise 04 – Distance Between Two Points
-
5 minC Exercise 05 – Swapping Three Integers
-
11 minC Exercise 06 – Quotient, Remainder & Rational Qutient
-
9 minC Exercise 07 – Resistance Calculation
-
10 minC Exercise 08 – Area of a Triangle
-
11 minC Exercise 09 – Sum of Multiple Numbers
-
6 minC Exercise 10 – Net Price, VAT & Final Price Calculation
-
5 minC++ Exercise 01 – Temperature Conversion (Fahrenheit to Celsius)
-
8 minC++ Exercise 02 – Square Distance Between Two Points
-
2 minC++ Exercise 03 – Distance Between Two Points
-
5 minC++ Exercise 04 – Swapping Three Integers
-
4 minC++ Exercise 05 – Quotient, Remainder & Rational Quotient
-
4 minC++ Exercise 06 – Resistance
-
4 minC++ Exercise 07 – Area of a Triangle
-
11 minC++ Exercise 08 – Sum of Multiple Numbers
-
7 minC++ Exercise 09 – Net Price, VAT & Final Price Calculation
-
14 minThe if–else Statement
-
14 minif–else: Best Practices and Practical Example
-
10 minNested if Statements
-
4 minConditional (Ternary) Operator
-
30 minThe switch Statement
-
7 minExercise 1: Check Even or Odd Number
-
24 minExercise 2: Find Maximum of Three Numbers
-
11 minExercise 3: Sorting Numbers Using Conditional Statements
-
7 minExercise 4 Determine Product Sign (No Multiplication)
-
20 minExercise 5 Determine Sum Sign (No Addition)
-
23 minExercise 6: Solve Quadratic Equations
-
5 minExercise 7: Number Categorization
-
22 minExercise 8: Determine Lucky Number
-
12 minExercise 9: Calculator Using Switch Statement
-
25 minThe while Loop
-
32 minThe do-while Loop
-
28 minThe for Loop
-
16 minLoop Control Statements: break and continue
-
10 minOutput Pattern Practice 01
-
3 minOutput Pattern Practice 02
-
4 minOutput Pattern Practice 03
-
3 minOutput Pattern Practice 04
-
10 minOutput Pattern Practice 05
-
15 minOutput Pattern Practice 06
-
23 minExercise 01 – Sum, Average, and Product of N Numbers
-
13 minExercise 02 – Factorial Calculation
-
8 minExercise 03 – Power Calculation (xⁿ)
-
20 minExercise 04 – Reverse a Number
-
11 minExercise 05 – Greatest Common Divisor (GCD)
-
14 minExercise 06 – Fibonacci Sequence
-
5 minExercise 07 – Multiplication Table
-
10 minExercise 08 – Perfect Number
-
11 minExercise 09 – Prime Number
-
12 minExercise 10 – Maximum of a Sequence
-
14 minExercise 11– Divisible By 9
-
27 minOne-Dimensional Arrays
-
8 min1D Array Exercise 1: Fill an Array
-
3 min1D Array Exercise 2: Sum of Array Elements
-
8 min1D Array Exercise 3: Remove Zero Occurrences
-
8 min1D Array Exercise 4: Reverse an Array
-
7 min1D Array Exercise 5: Positive and Negative Arrays
-
15 minTwo-Dimensional Arrays
-
11 min2D Array Exercise 1: Fill a Matrix and Calculate Sum
-
9 min2D Array Exercise 2: Row Sum and Column Sum
-
6 min2D Array Exercise 3: Convert 2D Array to 1D
-
7 min2D Array Exercise 4: Zeroing the Matrix Diagonal
-
15 min2D Array Exercise 5: Matrix Transpose
-
14 min2D Array Exercise 6: Matrix Multiplication
-
10 minStrings (Array of Characters)
-
8 minStrings: Initialization Exercise
-
12 minStrings: Precedence
-
9 minStrings with <stdio.h>
-
4 minStrings Exercise 1: Reverse Words
-
11 minStrings Exercise 2: Reverse a Sentence
-
6 minStrings Exercise 3: Remove Character E Occurrences
-
8 minStrings with <string.h>
-
4 minStrings Exercise 4: Length of a String (Name)
-
3 minStrings Exercise 5: String Comparison
-
18 minStrings Exercise 6: String Concatenation
-
8 minStrings with <stdlib.h>
-
3 minStrings with <ctype.h>
-
6 minArray of Strings: Introduction
-
19 minArray of Strings: Exercise
-
11 minStrings Exercise 7 Lexicographic Comparison( without string.h )
-
9 minStrings Exercise 8 Find First Occurence Position
-
15 minStrings Exercise 9: Palindrome
-
6 min11.1 Functions: Introduction
-
11 min11.2 Functions: Basic Example 1
-
20 min11.3 Functions: Basic Example 2
-
12 min11.4 Functions: Local vs Global Variables
-
10 min11.5 Functions: Definition and Declaration
-
14 min11.6 Functions: Return Statement
-
21 min11.7 Functions: Parameters (Pass by Value & Arrays)
-
5 minFunctions: Understanding Pass by Value (Memory Management)
-
9 min11.9 Functions Exercise 1: Average of Two Numbers
-
11 min11.10 Functions Exercise 2: Min and Max of Four Numbers
-
7 min11.11 Functions Exercise 3: Power (X^N)
-
7 min11.12 Functions Exercise 4: Factorial Calculation
-
7 min11.13 Functions Exercise 5: Sum of Array Elements
-
13 min11.14 Functions Exercise 6: Max Value and Index in Array
-
6 min11.15 Functions Exercise 7: String Length
-
9 min11.16 Functions Exercise 8: Sum of Matrix Elements
Course Resources
These resources will be available after enrollment.
-
Slides – Programming Fundamentals & Control Structures
13.72 MB -
Slides – Arrays & Functions
3.43 MB
$15.00
- Full access to all course content
- 11 modules · 130 video lessons
- Downloadable resources included
- Access from any device
- Access duration: 3 months from activation
Enroll in this Course
Already have an access code?
How to Get Access
- Fill in the enrollment form above
- Complete payment through our supported methods
- Receive your unique access code via WhatsApp
- Enter your code above to start learning!