- 2
How can I make the pyramid by* in c?like * ** *** **** ***** until n line.
In c
2 Réponses
+ 5
#include <stdio.h>
int main() {
int i,j,n;
printf ("Enter the value of n\n");
scanf("%d",&n);
for (i=1;i<=n;i++)
{
for (j=1;j<=i;j++)
{
printf ("* ");
}
printf ("\t\t");
}
return 0;
}
+ 3
Change \t into \n