WAP using one print statement to print the pattern of asterisks as shown below:

*
* *
* * *
* * * *
* * * * *

//E Balagurusamy, Programming In ANSI C,4E
//Exercise 1.2, page 21

//E Balagurusamy, Programming In ANSI C,4E
//Exercise 1.3, page 21

#include <stdio.h>

int main(void)
{printf("\n\n");

printf("*\n*\t*\n*\t*\t*\n*\t*\t*\t*\n*\t*\t*\t*\t*");

printf("\n\n");

return 0;
}

Comments

Post a Comment

Kindly keep your comments on-topic and don't spam.