'C' PROGRAMMS
Thursday, January 20, 2011
Overview of C
Write a program using one print statement to print the pattern of asterisks as shown below:
*
* *
* * *
* * * *
#include<stdio.h>
void main ()
{
printf("*\n* *\n* * *\n* * * *\n");
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment