Dremendo Tag Line
t

Print the given pattern in C++

cout - Question 3

In this question, we will print the given pattern in C++ programming using the cout statement. To know more about cout statement click on the cout statement lesson.

Q3) Write a program in C++ to print the given pattern using cout statement on the screen.

************
*STUDENT*
************

Program

#include <iostream>
#include <conio.h>

using namespace std;

int main()
{
    cout<<"*********\n";
    cout<<"*STUDENT*\n";
    cout<<"*********";
    return 0;
}

Output

*********
*STUDENT*
*********
video-poster