Hello programmers print the
star ladder in the turbo c++ .
If you can modify and make it short please send coding to me.
Enjoy:----
Coding:-
/*Program To Display The Sequence of star.*/
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,j;
clrscr();
/*Number Of Lines*/
printf("\n Enter any value");
scanf("%d",&n);
/*Main Loop*/
for(i=0;i<=n;i++)
{
for(j=1;j<=i;j++)/*Inner loop*/
printf("*"); /*Inner loop with single scope printf("*");*/
printf("\n");/*Under Main Loop*/
}
getch();
}
![]() |
STAR LADDER PYRAMID |
If you can modify and make it short please send coding to me.
Enjoy:----
Coding:-
/*Program To Display The Sequence of star.*/
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,j;
clrscr();
/*Number Of Lines*/
printf("\n Enter any value");
scanf("%d",&n);
/*Main Loop*/
for(i=0;i<=n;i++)
{
for(j=1;j<=i;j++)/*Inner loop*/
printf("*"); /*Inner loop with single scope printf("*");*/
printf("\n");/*Under Main Loop*/
}
getch();
}
No comments:
Post a Comment