lab_2 part 1

2
CSC128 – FUNDAMENTALS OF COMPUTER PROGRAMS LAB 2 ( Part 1) Question 1 Write a program display the following message: Welcome To C++ Programming World!!!! I’m James Question 2 Write a program display the following message: **************************************** * Welcome To UiTM * * my name is Billy * * I love programming * **************************************** Question 3 What does the following code print? cout<< “*\n**\n***\n****\n*****\n”; Question 4 Write a program that prints a box, an arrow and a diamond. 1 | Prepared by Nor Hafizah Abd Razak

Upload: syamim-necklace

Post on 02-Feb-2016

217 views

Category:

Documents


0 download

DESCRIPTION

ekekeee

TRANSCRIPT

Page 1: lab_2 Part 1

CSC128 – FUNDAMENTALS OF COMPUTER PROGRAMS LAB 2 ( Part 1)

Question 1

Write a program display the following message:

Welcome To C++ Programming World!!!!I’m James

Question 2

Write a program display the following message:

***************************************** Welcome To UiTM ** my name is Billy ** I love programming *****************************************

Question 3 What does the following code print?

cout<< “*\n**\n***\n****\n*****\n”;

Question 4

Write a program that prints a box, an arrow and a diamond.

1 | Prepared by Nor Hafizah Abd Razak