Geeks Projects C
Every Program is here !!!
Pages
Home
Asp.Net
Java Programming
Web Programming
Thursday, 2 October 2014
WAP to print pattern STAR(*)
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int k,i,j;
for(i=0;i<5;i++) {
for(j=0;j<5-i;j++) {
printf(" ");
}
for(k=0;k<=i*2;k++){
printf("*");
}
printf("\n");
}
getch();
}
No comments:
Post a Comment
Please write your doubts
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please write your doubts