Lab Report 2
Lab Report 2
Rg ID : 240201010
Assignment : PF (Lab Report 2)
Lab Task 1 :
C++ Statement :
#include <iostream>
int main() {
return 0;
Output :
Lab Task 2 :
C++ Statement :
a#include <iostream>
int main() {
cout << "can make things bigger, more complex, and more violent. ";
cout << "It takes a touch of genius -- and a lot of courage -- ";
return 0;
Output :
Lab Task 3 :
C++ Statement :
//LAB task 3
#include <iostream>
int main() {
//1. Write a C++ program to display letter in the following format Using
#include <iostream>
int main() {
cout << "My name is Mathew Parker and I have been appointed as a worker in the local\n";
cout << "community office last week. I have been assigned the responsibility to look into\n";
cout << "the matters related to general health of the public as well as sought out the\n";
cout << "Sir as you are the most honorable and responsible citizen in the area. So, I seek\n";
cout << "your permission to visit the local social offices and establishments at regular\n";
cout << "intervals so that I can ensure that these offices work properly and also look after\n";
cout << "the public hygiene. In order to keep the program going and bring about a change\n";
cout << "I hope that you will duly accept my introduction keeping in mind the above context\n";
cout << "and I will receive your full support and attention to deliver my best for the benefit of\n";
return 0;
Output :
Lab Task 5 :
C++ Statement :
//TASK 5
#include <iostream>
int main() {
//Full Pyramid
cout<<"\n";
cout<<"\n";
cout<<"\n";
//Hollow full pyramid
cout<<"\n";
return 0;
Output :