Print the given pattern in C
printf() - Question 3
In this question, we will print the given pattern in C programming using the printf() function. To know more about printf() function click on the printf() function lesson.
Q3) Write a program in C to print the given pattern using printf() function on the screen.
************
*STUDENT*
************
Program
#include <stdio.h>
#include <conio.h>
int main()
{
printf("*********\n");
printf("*STUDENT*\n");
printf("*********");
return 0;
}
Output
********* *STUDENT* *********