TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Star Pattern
Ashish Srivastava
Apr 08
2016
Code
658
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
#include <stdio.h>
void
main()
{
int
i, j, k;
for
(i=1;i<=5;i++)
{
for
(j=i;j<5;j++)
{
printf(
" "
);
}
for
(k=1;k<(i*2);k++)
{
printf(
"*"
);
}
printf(
"\n"
);
}
}
Star Pattern