C
Programming and Technical
Programming
Output
*
**
***
****
**********
****
***
**
*
Logic to print this
Read Solution (Total 8)
-
- let n=5
void main()
{
int n,i,j;
printf("Enter n");
scanf("%d",&n);
for(i=1;i0;j--)
{
printf("*");
}
printf("
");
}
} - 10 years agoHelpfull: Yes(2) No(5)
- #include
void main()
{
int n,i,j,inc=1;
printf("Enter n");
scanf("%d",&n);
for(i=1;i0;i+=inc)
{
for(j=1;j - 10 years agoHelpfull: Yes(2) No(1)
- let n=5....
void main()
{
printf("enter value of n");
scanf("%d",&n);
for(i=1;i=1;i--)
{
if(i==n)
print_star(i*2);
else
print_star(i);
}
}
print_star(n)
{
if(n==1)
{
printf("*
");
return;
}
else
{
printf("*");
print_star(n-1);
}
} - 10 years agoHelpfull: Yes(0) No(2)
- Print*
i++
- 10 years agoHelpfull: Yes(0) No(4)
- #include
#include
void main()
{
int k,i,j,x;
clrscr();
printf(" INPUT a NUMBER ");
scanf("%d",&x);
for(i=1;i - 9 years agoHelpfull: Yes(0) No(1)
- #include
#include
void main()
{
int i,j,n;
clrscr();
printf("
Enter no. ");
scanf("%d",&n);
for(i=0;i0;j--)
printf("*");
printf("
");
}
getch();
} - 9 years agoHelpfull: Yes(0) No(0)
- {
int i,j,k;
for(i=1;i - 9 years agoHelpfull: Yes(0) No(1)
- # include
void main()
{
int i; int j;
for (i=0;i - 9 years agoHelpfull: Yes(0) No(0)
C Other Question