C Language Tutorials
Category
Gadgets
Sub-Menu 1
Sub-Menu 2
Sub Sub-Menu 1
Sub Sub-Menu 2
Sub Sub-Menu 3
Sub Sub-Menu 4
Sub-Menu 3
Humor
Internet
Sub-Menu 1
Sub-Menu 2
Sub Sub-Menu 1
Sub Sub-Menu 2
Sub Sub-Menu 3
Sub Sub-Menu 4
Sub-Menu 3
Social
Documentation
Monday, October 5, 2020
C Language Pattern Code
CLanguageTutorials
October 05, 2020
Code :-
#include <stdio.h>
int main()
{
int i, j, n, k = 0;
scanf(“%d”,&n);
for(i = 1; i <= n; ++i, k = 0)
{
for(j = 1; j <= n – i; ++j)
{
printf(” “);
}
while(k != 2 * i-1)
{
printf(“* “);
++k;
}
printf(“\n”);
}
return 0;
}
Choose :
OR
To comment
No comments:
Write Comments
Subscribe to:
Post Comments (Atom)
Follow:
Popular Posts
Advertisement
3/Sports/post-list
Like on Facebook
Responsive Advertisement
No comments:
Write Comments