Lab 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

EE-133L Programming Fundamentals

Spring 2024

Registration number 2023-EE-1, 2023-EE-2, 2023-EE-3


Name A, B, C

Introduction to C Programming
Objective:
1. Understand the basic structure of a C compiler and program.
2. Write a simple program to print text on the screen.

Task 1:
Familiarize yourself with the compiler.

Explanation:

Task 2:
What is basic c-program structure and mention the use of each line.

Code:

Explanation:

Task 3:
Print the message "Hello, C Programming!" to the console.

Code:

Output:

Explanation:

Task 4:
Print your name and registration number to the console.

Instructor: Miss Rimsha Chauhdary


EE-133L Programming Fundamentals
Spring 2024

Code:

Output:

Explanation:

Task 5:
Print your name and registration number to the console in the new line.

Code:

Output:

Explanation:

Task 6:
Print a string containing special characters (e.g., newline, tab).
Code:

Output:

Explanation:

Conclusion:

Instructor: Miss Rimsha Chauhdary

You might also like