C Program to print Patterns of Character and Stars.
#include <stdio.h>
int main()
{
int i,j,r;
printf("Enter the row\n");
scanf("%d",&r);
for (i = 1; i <= r; ++i)
{
for (j = 1; j <= i; ++j)
{
printf("S*M ");
}
printf("\n");
}
return 0;
}
OUTPUT
Enter the row :
5
S*M
S*M S*M
S*M S*M S*M
S*M S*M S*M S*M
S*M S*M S*M S*M S*M
0 Comments
Please Do Not Comments Any Span Or Span link..