C Programs

Write a program that uses four printf statement to print the following pattern:
*
**
***
****


#include<stdio.h>

void main()
{
printf("*\n");
printf("**\n");
printf("***\n");
printf("****\n");
}

Output :




Post a Comment

0 Comments