Department of Electrical Engineering
Riphah College of Science and Technology
Riphah International University, Lahore
Program: B.Sc. Electrical engineering
Subject: CS-101 Computer Fundamentals Lab
Semester: I
Date: 30-11-2020
Lab 5:
PROCEDURAL PROGRAMMING USING FOR LOOP
OBJECTIVES:
i. Learn to use FOR Loop
Name : Muhammad Waqas Mohay U Din
SAP ID: 25088
No.
Lab Evaluation Scheme
Obtained
Marks
1
Understanding and Ability to Conduct Experiment. (0-5)
2
Implementation and Results (0-5)
Total
No.
Lab Report Scheme
Obtained
Marks
1
Report Content(0-5)
2
Data Presentation and conclusion(0-5)
Total
Remarks (if any): ………………………………….
Signature of faculty: …………………………………
Lab 5
PROCEDURAL PROGRAMMING USING FOR LOOP
PURPOSE
1. To understand the iterative statements and their use in C++
2. To implement For loop
PROCEDURE
1. In the lab students should complete both the “Examples” and “Lab Tasks”.
PRE-LAB READING ASSIGNMENTS
Before starting this lab, students should read/revise the lectures presented on given topics in the class.
Syntax of for loop:
for (initialization; condition test; increment or decrement)
{
//Statements to be executed repeatedly
}