J Pattern Programs in C Programming Language || C Programming Language || C Programs.
J Programs to Creat C alphabet Program in C Programming Language.
Write a C Program for make a J Pattern in C Language. This Program make by Vighu. This Program make by for loop. This Program Print J Pattern.Program for Print a J Paterrn in C Program.
Source Code :-
/*
##################################################################################
##################################################################################
## ##
## Program Name :- J Pattern Program ##
## Created By :- Vighu ##
## ##
##################################################################################
##################################################################################
*/
#include<stdio.h>
int main(int argc, char const *argv[])
{
int n =5;
int i, j;
for (i = 1; i <= n; i++)
{
for (j=1; j <=n; j++)
{
if (i == 1 || (i == n && j <= n/2+1) ||
j == n/2+1)
{
printf("*");
}
else
{
printf(" ");
}
}
printf("\n");
}
return 0;
}
Comments
Post a Comment