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

Introduction to Computing (ITCM13)

Time Allowed: 30 minutes


Graded
Lab 1
cout
Topic
Objective Making students familiarize with the concepts of how to write basic programs with
& proper syntax and semantics, and understand the flow of program.
Outcome
s

Instructions:
 Indent your code.
 Comment your code.
 Use meaningful variable names.
 Plan your code carefully on a piece of paper before you implement it.
 Name of the program should be same as the task name. i.e. the first program should
be Task_1.cpp
 You are required to follow the naming conventions as follow:
 Variables: firstName; (no underscores allowed)

Graded Task:

Write a C++ program to print the following shape on console using cout statement as shown
below:

Output

You might also like