Imperative Programming C/C++ (I1101)
Lebanese University Lebanese University
Programming Beginner

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.

11 hours 11 modules 130 videos 23 resources
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
Ali Abo Aliwe

Course Instructor

Course Curriculum
11 modules · 130 videos

  • Setup Environment (VS Code Installation)
    7 min
  • Setup Environment (Tablets and Phones)
    2 min
1 resource(s) available

  • History of C & Its Strengths and Limitations
    8 min
  • How C Programs Are Built IDE, Compiler & Linker Explained
    4 min

  • Core Building Blocks of a Program
    11 min
  • Comments
    3 min
  • Basic Output in C : printf() and Escape Sequences
    13 min
  • Quiz Review & Solution
    10 min
3 resource(s) available

  • Introduction to Variables & Data Types
    8 min
  • Primitive Data Types in C & C++
    8 min
  • Primitive Data Types in C & C++ Exercise
    9 min
  • Variable Declaration & Initialization
    39 min
  • Operators in C & C++: Arithmetic, Logical & Assignment
    42 min
  • Expressions & Instructions Explained
    3 min
  • Operator Precedence
    13 min
  • Operator Precedence Exercise
    22 min
  • Mathematical Functions in C
    21 min
  • Type Conversion & Casting
    23 min
  • Type Conversion & Casting Exercises
    7 min
6 resource(s) available

  • Output in C – printf()
    17 min
  • printf() Exercise
    16 min
  • Input in C – scanf()
    13 min
  • Output in C++ – cout
    15 min
  • input in C++ – cin
    11 min
  • Key Differences Between C and C++ InputOutput
    10 min
  • C Exercise 01 – Character Input & Output
    5 min
  • C Exercise 02 – Temperature Conversion (Fahrenheit to Celsius)
    11 min
  • C Exercise 03 – Square Distance Between Two Points
    12 min
  • C Exercise 04 – Distance Between Two Points
    4 min
  • C Exercise 05 – Swapping Three Integers
    5 min
  • C Exercise 06 – Quotient, Remainder & Rational Qutient
    11 min
  • C Exercise 07 – Resistance Calculation
    9 min
  • C Exercise 08 – Area of a Triangle
    10 min
  • C Exercise 09 – Sum of Multiple Numbers
    11 min
  • C Exercise 10 – Net Price, VAT & Final Price Calculation
    6 min
  • C++ Exercise 01 – Temperature Conversion (Fahrenheit to Celsius)
    5 min
  • C++ Exercise 02 – Square Distance Between Two Points
    8 min
  • C++ Exercise 03 – Distance Between Two Points
    2 min
  • C++ Exercise 04 – Swapping Three Integers
    5 min
  • C++ Exercise 05 – Quotient, Remainder & Rational Quotient
    4 min
  • C++ Exercise 06 – Resistance
    4 min
  • C++ Exercise 07 – Area of a Triangle
    4 min
  • C++ Exercise 08 – Sum of Multiple Numbers
    11 min
  • C++ Exercise 09 – Net Price, VAT & Final Price Calculation
    7 min
5 resource(s) available

  • The if–else Statement
    14 min
  • if–else: Best Practices and Practical Example
    14 min
  • Nested if Statements
    10 min
  • Conditional (Ternary) Operator
    4 min
  • The switch Statement
    30 min
  • Exercise 1: Check Even or Odd Number
    7 min
  • Exercise 2: Find Maximum of Three Numbers
    24 min
  • Exercise 3: Sorting Numbers Using Conditional Statements
    11 min
  • Exercise 4 Determine Product Sign (No Multiplication)
    7 min
  • Exercise 5 Determine Sum Sign (No Addition)
    20 min
  • Exercise 6: Solve Quadratic Equations
    23 min
  • Exercise 7: Number Categorization
    5 min
  • Exercise 8: Determine Lucky Number
    22 min
  • Exercise 9: Calculator Using Switch Statement
    12 min
3 resource(s) available

  • The while Loop
    25 min
  • The do-while Loop
    32 min
  • The for Loop
    28 min
  • Loop Control Statements: break and continue
    16 min
  • Output Pattern Practice 01
    10 min
  • Output Pattern Practice 02
    3 min
  • Output Pattern Practice 03
    4 min
  • Output Pattern Practice 04
    3 min
  • Output Pattern Practice 05
    10 min
  • Output Pattern Practice 06
    15 min
  • Exercise 01 – Sum, Average, and Product of N Numbers
    23 min
  • Exercise 02 – Factorial Calculation
    13 min
  • Exercise 03 – Power Calculation (xⁿ)
    8 min
  • Exercise 04 – Reverse a Number
    20 min
  • Exercise 05 – Greatest Common Divisor (GCD)
    11 min
  • Exercise 06 – Fibonacci Sequence
    14 min
  • Exercise 07 – Multiplication Table
    5 min
  • Exercise 08 – Perfect Number
    10 min
  • Exercise 09 – Prime Number
    11 min
  • Exercise 10 – Maximum of a Sequence
    12 min
  • Exercise 11– Divisible By 9
    14 min
2 resource(s) available

  • One-Dimensional Arrays
    27 min
  • 1D Array Exercise 1: Fill an Array
    8 min
  • 1D Array Exercise 2: Sum of Array Elements
    3 min
  • 1D Array Exercise 3: Remove Zero Occurrences
    8 min
  • 1D Array Exercise 4: Reverse an Array
    8 min
  • 1D Array Exercise 5: Positive and Negative Arrays
    7 min
  • Two-Dimensional Arrays
    15 min
  • 2D Array Exercise 1: Fill a Matrix and Calculate Sum
    11 min
  • 2D Array Exercise 2: Row Sum and Column Sum
    9 min
  • 2D Array Exercise 3: Convert 2D Array to 1D
    6 min
  • 2D Array Exercise 4: Zeroing the Matrix Diagonal
    7 min
  • 2D Array Exercise 5: Matrix Transpose
    15 min
  • 2D Array Exercise 6: Matrix Multiplication
    14 min
  • Strings (Array of Characters)
    10 min
  • Strings: Initialization Exercise
    8 min
  • Strings: Precedence
    12 min
  • Strings with <stdio.h>
    9 min
  • Strings Exercise 1: Reverse Words
    4 min
  • Strings Exercise 2: Reverse a Sentence
    11 min
  • Strings Exercise 3: Remove Character E Occurrences
    6 min
  • Strings with <string.h>
    8 min
  • Strings Exercise 4: Length of a String (Name)
    4 min
  • Strings Exercise 5: String Comparison
    3 min
  • Strings Exercise 6: String Concatenation
    18 min
  • Strings with <stdlib.h>
    8 min
  • Strings with <ctype.h>
    3 min
  • Array of Strings: Introduction
    6 min
  • Array of Strings: Exercise
    19 min
  • Strings Exercise 7 Lexicographic Comparison( without string.h )
    11 min
  • Strings Exercise 8 Find First Occurence Position
    9 min
  • Strings Exercise 9: Palindrome
    15 min

  • 11.1 Functions: Introduction
    6 min
  • 11.2 Functions: Basic Example 1
    11 min
  • 11.3 Functions: Basic Example 2
    20 min
  • 11.4 Functions: Local vs Global Variables
    12 min
  • 11.5 Functions: Definition and Declaration
    10 min
  • 11.6 Functions: Return Statement
    14 min
  • 11.7 Functions: Parameters (Pass by Value & Arrays)
    21 min
  • Functions: Understanding Pass by Value (Memory Management)
    5 min
  • 11.9 Functions Exercise 1: Average of Two Numbers
    9 min
  • 11.10 Functions Exercise 2: Min and Max of Four Numbers
    11 min
  • 11.11 Functions Exercise 3: Power (X^N)
    7 min
  • 11.12 Functions Exercise 4: Factorial Calculation
    7 min
  • 11.13 Functions Exercise 5: Sum of Array Elements
    7 min
  • 11.14 Functions Exercise 6: Max Value and Index in Array
    13 min
  • 11.15 Functions Exercise 7: String Length
    6 min
  • 11.16 Functions Exercise 8: Sum of Matrix Elements
    9 min
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
  1. Fill in the enrollment form above
  2. Complete payment through our supported methods
  3. Receive your unique access code via WhatsApp
  4. Enter your code above to start learning!