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