c Program to generate specific formats


Program to generate specific formats
Program
#include<stdio.h>
void main()
{
int r, s, n;
printf("\nEnter the Value of n : ");
scanf("%d", &n);
for(r = 1; r <= n; r++)
{
for(s = 1; s <= r; s++)
printf("*");
printf("\n");
}
}


No comments: