Example: Write a program to display the following information as an output as like the following format.

NUB
Dhanmondi
Dhaka

Sample#01

#include<iostream>
using namespace std;

int main()
{
    cout<<"NUB"<<endl;
    cout<<"Dhanmondi"<<endl;
    cout<<"Dhaka";
    return 0;
}

Sample#02

#include<iostream>
using namespace std;

int main()
{
    cout<<"NUB"<<endl
    <<"Dhanmondi"<<endl
    <<"Dhaka";
    return 0;
}

Sample#03

#include<iostream>
using namespace std;

int main()
{
    cout<<"NUB"<<"\n"
    <<"Dhanmondi"<<"\n"
    <<"Dhaka";
    return 0;
}

Sample#04

#include<iostream>
using namespace std;

int main()
{
    cout<<"NUB\n"<<"Dhanmondi\n"<<"Dhaka”;
    return 0;
}

Sample#05

#include<iostream>
using namespace std;

int main()
{
    cout<<"NUB\nDhanmondi\nDhaka";
    return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *