CFP Lab Report 1
CFP Lab Report 1
UTER
LAB REPORT: 1
FUND
NAME: AHMED RAZA
AMEN
DEPARTMENT: BS-EE-21-25 TALS
LAB TASKS: AND
QUESTION NUMBER: 1
PROGR
Type a program which prints “hello world” on the screen.
PROGRAMME:
#include AMMIN
Using namespace std;
Int main()
G
{
cout<<”hello world”<<endl;
Return 0;
Reference:
Description:
The code prints hello world on the screen by cout which is used to display outputs. Along with
the cout statement it tells us about the basic syntax of cpp.
Question: 2
Write a program that introduces you
Program:
#include<iostream>
Int main()
int Number1;
int Number2;
Number1=1041;
Number2=1023;
Return 0;
Reference:
Description:
This is an introductory code which is used to display some introductory statements on the screen
by cout statement. In addition to that it is used to learn some commands such as endl and
terminators.
Question: 3
****
**********
*****************
***********
*******
****
*
Program:
#include<iostream>
using namespace std;
Int main();
{
cout<<” *****”<<endl;
cout<<” **********”<<endl;
cout<<”****************”<<endl;
cout<<” ****”<<endl;
cout<<” ***”<<endl;
cout<<” *”<<endl;
Reference:
Description:
The program tells us the use of cout . Which is used to display outputs on the screen. The code
displays a stearic diamond on the screen.